Package overit.geocall.platform
Class Permissions
java.lang.Object
overit.geocall.platform.Permissions
- All Implemented Interfaces:
Serializable,Iterable<Permission>
- Direct Known Subclasses:
AccountPermissions,AIAssistantPermissions,AssetPermissions,BundlerPermissions,CharacteristicPermissions,CrewShellPermissions,DataCollectionPermission,ExecutionPermissions,FsmBookingPermissions,FsmForecastCapacityPermissions,FsmInventoryPermissions,MeasuringElementPermissions,NotificationPermission,OrganizationalStructurePermissions,ResourcePermissions,RoughPlanningPermissions,SchedulingPermissions,SkillPermissions,SystemSettingsPermissions,VCPermission,WorkOrderPermissions
This class manages the
Permission and PermissionSet used to
gain access or perform certain actions.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LinkedHashMap<String, List<Permission>> protected LinkedHashMap<String, PermissionSet> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Permissionadd(Permission f) Adds aPermissionfinal voidAdds all not presentPermissionsfinal voidaddAll(Permissions ff) Adds all thePermissionsAdds aPermissionSetto the groupfinal booleanIndicates if a certain permission is in the Permissionsfinal booleanIndicates if a certain permission is in the PermissionsReturns thePermissionwith a given nameiterator()final voidregisterClass(Class source) Register the classsort()Sort thePermissions.PermissionWithSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
sets
-
perms
-
-
Constructor Details
-
Permissions
public Permissions()
-
-
Method Details
-
addGroup
Adds aPermissionSetto the group- Parameters:
fs- ThePermissionSetto add- Returns:
- The
PermissionSet
-
iterator
- Specified by:
iteratorin interfaceIterable<Permission>
-
contains
Indicates if a certain permission is in the Permissions- Parameters:
f- ThePermissionto check- Returns:
trueif the permission is present,falseotherwise
-
contains
Indicates if a certain permission is in the Permissions- Parameters:
s- The name to check- Returns:
trueif the permission is present,falseotherwise
-
add
Adds aPermission- Parameters:
f- ThePermission- Returns:
- The
Permissionitself
-
addAll
Adds all thePermissions- Parameters:
ff- ThePermissionsto add
-
get
Returns thePermissionwith a given name- Parameters:
name- The name- Returns:
- The
Permissionwith a given name
-
addAbsents
Adds all not presentPermissions- Parameters:
ff- ThePermissions
-
registerClass
Register the class- Parameters:
source- The class
-
sort
Sort thePermissions.PermissionWithSet- Returns:
- The TreeSet with the
Permissions.PermissionWithSetsorted
-