Class DesignerPermissionUtil
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.project.DesignerPermissionUtil
 
- 
 public class DesignerPermissionUtil extends java.lang.ObjectA utility class that assists in verifying permissions given the user and global project props or required roles for save,publish,view,export,copy, or delete on a project Note: every permission utility method returns true if the global props are null because the project might not have any global props, hence granting permission
- 
- 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanCreateProject(java.util.List<java.lang.String> gatewayRoles, User user)static booleancanDeleteProject(GlobalProps props, User user)static booleancanDeleteProject(GlobalProps props, java.util.Collection<java.lang.String> userRoles)static booleancanEditProtectedResources(GlobalProps props, User user)static booleancanSaveProject(GlobalProps props, User user)static booleancanViewProject(GlobalProps props, User user)static booleancanViewProject(java.util.List<java.lang.String> viewRoles, User user)static booleanhasPermission(User user, java.util.Collection<java.lang.String> requiredRoles)static booleanhasPermission(java.util.Collection<java.lang.String> userRoles, java.util.Collection<java.lang.String> requiredRoles)
 
- 
- 
- 
Method Detail- 
hasPermissionpublic static boolean hasPermission(@Nullable User user, @Nullable java.util.Collection<java.lang.String> requiredRoles)
 - 
hasPermissionpublic static boolean hasPermission(@Nonnull java.util.Collection<java.lang.String> userRoles, @Nonnull java.util.Collection<java.lang.String> requiredRoles)
 - 
canViewProjectpublic static boolean canViewProject(@Nullable GlobalProps props, @Nullable User user)
 - 
canViewProjectpublic static boolean canViewProject(@Nullable java.util.List<java.lang.String> viewRoles, @Nullable User user)
 - 
canCreateProjectpublic static boolean canCreateProject(@Nullable java.util.List<java.lang.String> gatewayRoles, @Nullable User user)
 - 
canSaveProjectpublic static boolean canSaveProject(@Nullable GlobalProps props, @Nullable User user)
 - 
canEditProtectedResourcespublic static boolean canEditProtectedResources(@Nullable GlobalProps props, @Nullable User user)
 - 
canDeleteProjectpublic static boolean canDeleteProject(@Nullable GlobalProps props, @Nullable User user)
 - 
canDeleteProjectpublic static boolean canDeleteProject(@Nullable GlobalProps props, @Nullable java.util.Collection<java.lang.String> userRoles)
 
- 
 
-