Class DesignerPermissionUtil
java.lang.Object
com.inductiveautomation.ignition.common.project.DesignerPermissionUtil
A 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 Summary
Modifier and TypeMethodDescriptionstatic booleancanCreateProject(List<String> gatewayRoles, User user) static booleancanDeleteProject(GlobalProps props, User user) static booleancanDeleteProject(GlobalProps props, Collection<String> userRoles) static booleancanEditProtectedResources(GlobalProps props, User user) static booleancanSaveProject(GlobalProps props, User user) static booleancanViewProject(GlobalProps props, User user) static booleancanViewProject(List<String> viewRoles, User user) static booleanhasPermission(User user, Collection<String> requiredRoles) static booleanhasPermission(Collection<String> userRoles, Collection<String> requiredRoles)  
- 
Method Details
- 
hasPermission
public static boolean hasPermission(@Nullable User user, @Nullable Collection<String> requiredRoles)  - 
hasPermission
public static boolean hasPermission(@Nonnull Collection<String> userRoles, @Nonnull Collection<String> requiredRoles)  - 
canViewProject
 - 
canViewProject
 - 
canCreateProject
 - 
canSaveProject
 - 
canEditProtectedResources
 - 
canDeleteProject
 - 
canDeleteProject
public static boolean canDeleteProject(@Nullable GlobalProps props, @Nullable Collection<String> userRoles)  
 -