Interface PermissionEntry
- All Superinterfaces:
Comparable<PermissionEntry>
- All Known Implementing Classes:
PermissionEntryBase
,PermissionEntryImpl
,PITPermissionAllView
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
type of permission, either assigned to role, or assigned to role and user combined -
Method Summary
Modifier and TypeMethodDescriptionaction on the permission (e.g.action on the permission (e.g.notes on the assignment of privilegeget attribute assignint
depth of action hierarchy, 0 means immediateget the enum for delegatable, do not return nullinternal method for hibernate to persist this enumid of the attribute assign row, either to the role, or to the role member pairid of the attributeDefget attribute def namedisplay name of the attribute def name which is the permission assigned to the role or subjectid of the attribute def name which is the permissionname of the attribute def name which is the permission assigned to the role or subjectint
depth of attributeDefName set hierarchy, 0 means immediateif there is a date here, and it is in the past, this assignment is disabledif there is a date here, and it is in the past, this assignment is disabledif this is a permission, then if this permission assignment is allowed or nottrue or false for if this assignment is enabled (e.g.if there is a date here, and it is in the future, this assignment is disabled until that timeif there is a date here, and it is in the future, this assignment is disabled until that timeThe end time for this permission entry.when the underlying membership will be disabledwhen the underlying membership will be disabledwhen the underlying membership was enabledwhen the underlying membership was enabledget the memberid of the member that has the permissionint
depth of memberships, 0 means immediateid of the membership rowcache the weighting of this assignmenttype of permission, either assigned to role, or assigned to role and user combined: role_subjecttype of permission, either assigned to role, or assigned to role and user combined: role_subjectgetRole()
owner roledisplay name of the role which the subject is in to have the permissionid of the role which the subject is in to get the permissionrole which has the permission or which the subject must be in to have the permissionint
depth of role hierarchy, 0 means immediate, -1 means no role set involvedThe start time for this permission entry.subject id of the subject which has the permissionssource id of the subject which has the permissionsboolean
isActive()
Whether this permission entry currently exists.boolean
this will be if this permissions is allowed (not in DB/assignment, but overall).boolean
if this is a permission, then if this permission assignment is allowed or notboolean
true or false for if this assignment is enabled (e.g.boolean
isImmediate
(PermissionEntry.PermissionType thePermissionType) boolean
see if the membership is unassignable directlyboolean
see if the permission is unassignable directlyvoid
action on the permission (e.g.void
setActionId
(String actionId1) action on the permission (e.g.void
setAllowedOverall
(boolean allowedOverall1) this will be if this permissions is allowed (not in DB/assignment, but overall).void
setAssignmentNotes
(String assignmentNotes1) notes on the assignment of privilegevoid
setAttributeAssignActionSetDepth
(int attributeAssignActionSetDepth1) depth of action hierarchy, 0 means immediatevoid
setAttributeAssignDelegatable
(AttributeAssignDelegatable attributeAssignDelegatable1) void
setAttributeAssignDelegatableDb
(String theAttributeAssignDelegatableDb) internal method for hibernate to set if delegatablevoid
setAttributeAssignId
(String attributeAssignId1) id of the attribute assign row, either to the role, or to the role member pairvoid
setAttributeDefId
(String attributeDefId1) id of the attributeDefvoid
setAttributeDefNameDispName
(String attributeDefNameDispName1) display name of the attribute def name which is the permission assigned to the role or subjectvoid
setAttributeDefNameId
(String attributeDefNameId1) id of the attribute def name which is the permissionvoid
setAttributeDefNameName
(String attributeDefNameName1) name of the attribute def name which is the permission assigned to the role or subjectvoid
setAttributeDefNameSetDepth
(int attributeDefNameSetDepth1) depth of attributeDefName set hierarchy, 0 means immediatevoid
setDisabledTime
(Timestamp disabledTimeDb1) if there is a date here, and it is in the past, this assignment is disabledvoid
setDisabledTimeDb
(Long disabledTimeDb1) if there is a date here, and it is in the past, this assignment is disabledvoid
setDisallowed
(boolean disallowed1) if this is a permission, then if this permission assignment is allowed or notvoid
setDisallowedDb
(String disallowed1) if this is a permission, then if this permission assignment is allowed or notvoid
setEnabled
(boolean enabled1) true or false for if this assignment is enabled (e.g.void
setEnabledDb
(String enabled1) true or false for if this assignment is enabled (e.g.void
setEnabledTime
(Timestamp enabledTimeDb1) if there is a date here, and it is in the future, this assignment is disabled until that timevoid
setEnabledTimeDb
(Long enabledTimeDb1) if there is a date here, and it is in the future, this assignment is disabled until that timevoid
setImmediateMshipDisabledTimeDb
(Long immediateMshipDisabledTimeDb1) when the underlying membership was enabledvoid
setImmediateMshipDisabledTimeDb
(Timestamp immediateMshipDisabledTimeDb1) when the underlying membership was enabledvoid
setImmediateMshipEnabledTime
(Timestamp immediateMshipEnabledTimeDb1) when the underlying membership was enabledvoid
setImmediateMshipEnabledTimeDb
(Long immediateMshipEnabledTimeDb1) when the underlying membership was enabledvoid
setMemberId
(String memberId1) id of the member that has the permissionvoid
setMembershipDepth
(int membershipDepth1) depth of memberships, 0 means immediatevoid
setMembershipId
(String membershipId1) id of the membership rowvoid
setPermissionHeuristics
(PermissionHeuristics permissionHeuristics1) cache the weighting of this assignmentvoid
setPermissionTypeDb
(String permissionTypeDb1) type of permission, either assigned to role, or assigned to role and user combined: role_subjectvoid
setRoleDisplayName
(String roleDisplayName1) display name of the role which the subject is in to have the permissionvoid
id of the role which the subject is in to get the permissionvoid
setRoleName
(String roleName1) role which has the permission or which the subject must be in to have the permissionvoid
setRoleSetDepth
(int roleSetDepth1) depth of role hierarchy, 0 means immediate, -1 means no role set involvedvoid
setSubjectId
(String subjectId1) subject id of the subject which has the permissionsvoid
setSubjectSourceId
(String subjectSourceId1) source id of the subject which has the permissionsMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
isAllowedOverall
boolean isAllowedOverall()this will be if this permissions is allowed (not in DB/assignment, but overall). So if we are considering limits, and the limit is false, then this will be false for a permission where the disallow is set to false- Returns:
- true if allowed overall
-
setAllowedOverall
void setAllowedOverall(boolean allowedOverall1) this will be if this permissions is allowed (not in DB/assignment, but overall). So if we are considering limits, and the limit is false, then this will be false for a permission where the disallow is set to false- Parameters:
allowedOverall1
-
-
getAssignmentNotes
String getAssignmentNotes()notes on the assignment of privilege- Returns:
- notes
-
setAssignmentNotes
notes on the assignment of privilege- Parameters:
assignmentNotes1
-
-
getImmediateMshipEnabledTimeDb
Long getImmediateMshipEnabledTimeDb()when the underlying membership was enabled- Returns:
- time
-
getImmediateMshipEnabledTime
Timestamp getImmediateMshipEnabledTime()when the underlying membership was enabled- Returns:
- time
-
setImmediateMshipEnabledTimeDb
when the underlying membership was enabled- Parameters:
immediateMshipEnabledTimeDb1
-
-
setImmediateMshipEnabledTime
when the underlying membership was enabled- Parameters:
immediateMshipEnabledTimeDb1
-
-
getImmediateMshipDisabledTimeDb
Long getImmediateMshipDisabledTimeDb()when the underlying membership will be disabled- Returns:
- time
-
setImmediateMshipDisabledTimeDb
when the underlying membership was enabled- Parameters:
immediateMshipDisabledTimeDb1
-
-
getImmediateMshipDisabledTime
Timestamp getImmediateMshipDisabledTime()when the underlying membership will be disabled- Returns:
- time
-
setImmediateMshipDisabledTimeDb
when the underlying membership was enabled- Parameters:
immediateMshipDisabledTimeDb1
-
-
getActionId
String getActionId()action on the permission (e.g. read, write, assign (default), etc- Returns:
- action
-
setActionId
action on the permission (e.g. read, write, assign (default), etc- Parameters:
actionId1
-
-
getPermissionHeuristics
PermissionHeuristics getPermissionHeuristics()cache the weighting of this assignment- Returns:
- the permission heuristic
-
setPermissionHeuristics
cache the weighting of this assignment- Parameters:
permissionHeuristics1
-
-
getMembershipDepth
int getMembershipDepth()depth of memberships, 0 means immediate- Returns:
- depth
-
setMembershipDepth
void setMembershipDepth(int membershipDepth1) depth of memberships, 0 means immediate- Parameters:
membershipDepth1
-
-
getRoleSetDepth
int getRoleSetDepth()depth of role hierarchy, 0 means immediate, -1 means no role set involved- Returns:
- depth
-
setRoleSetDepth
void setRoleSetDepth(int roleSetDepth1) depth of role hierarchy, 0 means immediate, -1 means no role set involved- Parameters:
roleSetDepth1
-
-
getAttributeDefNameSetDepth
int getAttributeDefNameSetDepth()depth of attributeDefName set hierarchy, 0 means immediate- Returns:
- depth
-
setAttributeDefNameSetDepth
void setAttributeDefNameSetDepth(int attributeDefNameSetDepth1) depth of attributeDefName set hierarchy, 0 means immediate- Parameters:
attributeDefNameSetDepth1
-
-
getAttributeAssignActionSetDepth
int getAttributeAssignActionSetDepth()depth of action hierarchy, 0 means immediate- Returns:
- depth
-
setAttributeAssignActionSetDepth
void setAttributeAssignActionSetDepth(int attributeAssignActionSetDepth1) depth of action hierarchy, 0 means immediate- Parameters:
attributeAssignActionSetDepth1
-
-
getRoleName
String getRoleName()role which has the permission or which the subject must be in to have the permission- Returns:
- the roleName
-
setRoleName
role which has the permission or which the subject must be in to have the permission- Parameters:
roleName1
- the roleName to set
-
getSubjectSourceId
String getSubjectSourceId()source id of the subject which has the permissions- Returns:
- the subjectSourceId
-
setSubjectSourceId
source id of the subject which has the permissions- Parameters:
subjectSourceId1
- the subjectSourceId to set
-
getSubjectId
String getSubjectId()subject id of the subject which has the permissions- Returns:
- the subjectId
-
setSubjectId
subject id of the subject which has the permissions- Parameters:
subjectId1
- the subjectId to set
-
getAction
String getAction()action on the permission (e.g. read, write, assign (default), etc- Returns:
- the action
-
setAction
action on the permission (e.g. read, write, assign (default), etc- Parameters:
action1
- the action to set
-
getAttributeDefNameName
String getAttributeDefNameName()name of the attribute def name which is the permission assigned to the role or subject- Returns:
- the attributeDefNameName
-
setAttributeDefNameName
name of the attribute def name which is the permission assigned to the role or subject- Parameters:
attributeDefNameName1
- the attributeDefNameName to set
-
getAttributeDefNameDispName
String getAttributeDefNameDispName()display name of the attribute def name which is the permission assigned to the role or subject- Returns:
- the attributeDefNameDispName
-
setAttributeDefNameDispName
display name of the attribute def name which is the permission assigned to the role or subject- Parameters:
attributeDefNameDispName1
- the attributeDefNameDispName to set
-
getRoleDisplayName
String getRoleDisplayName()display name of the role which the subject is in to have the permission- Returns:
- the roleDisplayName
-
setRoleDisplayName
display name of the role which the subject is in to have the permission- Parameters:
roleDisplayName1
- the roleDisplayName to set
-
getRoleId
String getRoleId()id of the role which the subject is in to get the permission- Returns:
- the roleId
-
getRole
Role getRole()owner role- Returns:
- the ownerRole
-
getAttributeDefName
AttributeDefName getAttributeDefName()get attribute def name- Returns:
- attributeDefName
-
getAttributeAssign
AttributeAssign getAttributeAssign()get attribute assign- Returns:
- attributeAssign
-
setRoleId
id of the role which the subject is in to get the permission- Parameters:
roleId1
- the roleId to set
-
getAttributeDefId
String getAttributeDefId()id of the attributeDef- Returns:
- the attributeDefId
-
getAttributeDef
AttributeDef getAttributeDef()- Returns:
- attributeDef
-
setAttributeDefId
id of the attributeDef- Parameters:
attributeDefId1
- the attributeDefId to set
-
getMemberId
String getMemberId()id of the member that has the permission- Returns:
- the memberId
-
getMember
Member getMember()get the member- Returns:
- the member
-
setMemberId
id of the member that has the permission- Parameters:
memberId1
- the memberId to set
-
getAttributeDefNameId
String getAttributeDefNameId()id of the attribute def name which is the permission- Returns:
- the attributeDefNameId
-
setAttributeDefNameId
id of the attribute def name which is the permission- Parameters:
attributeDefNameId1
- the attributeDefNameId to set
-
getAttributeAssignDelegatable
AttributeAssignDelegatable getAttributeAssignDelegatable()get the enum for delegatable, do not return null- Returns:
- the attributeAssignDelegatable
-
getAttributeAssignDelegatableDb
String getAttributeAssignDelegatableDb()internal method for hibernate to persist this enum- Returns:
- the string value (enum name)
-
getDisabledTime
Timestamp getDisabledTime()if there is a date here, and it is in the past, this assignment is disabled- Returns:
- the disabledTimeDb
-
getDisabledTimeDb
Long getDisabledTimeDb()if there is a date here, and it is in the past, this assignment is disabled- Returns:
- the disabledTimeDb
-
getEnabledDb
String getEnabledDb()true or false for if this assignment is enabled (e.g. might have expired)- Returns:
- the enabled
-
getEnabledTime
Timestamp getEnabledTime()if there is a date here, and it is in the future, this assignment is disabled until that time- Returns:
- the enabledTimeDb
-
getEnabledTimeDb
Long getEnabledTimeDb()if there is a date here, and it is in the future, this assignment is disabled until that time- Returns:
- the enabledTimeDb
-
isEnabled
boolean isEnabled()true or false for if this assignment is enabled (e.g. might have expired)- Returns:
- the enabled
-
setAttributeAssignDelegatable
- Parameters:
attributeAssignDelegatable1
- the attributeAssignDelegatable to set
-
setAttributeAssignDelegatableDb
internal method for hibernate to set if delegatable- Parameters:
theAttributeAssignDelegatableDb
-
-
setDisabledTime
if there is a date here, and it is in the past, this assignment is disabled- Parameters:
disabledTimeDb1
- the disabledTimeDb to set
-
setDisabledTimeDb
if there is a date here, and it is in the past, this assignment is disabled- Parameters:
disabledTimeDb1
- the disabledTimeDb to set
-
setEnabled
void setEnabled(boolean enabled1) true or false for if this assignment is enabled (e.g. might have expired)- Parameters:
enabled1
- the enabled to set
-
setEnabledDb
true or false for if this assignment is enabled (e.g. might have expired)- Parameters:
enabled1
- the enabled to set
-
setEnabledTime
if there is a date here, and it is in the future, this assignment is disabled until that time- Parameters:
enabledTimeDb1
- the enabledTimeDb to set
-
setEnabledTimeDb
if there is a date here, and it is in the future, this assignment is disabled until that time- Parameters:
enabledTimeDb1
- the enabledTimeDb to set
-
getPermissionTypeDb
String getPermissionTypeDb()type of permission, either assigned to role, or assigned to role and user combined: role_subject- Returns:
- type of permission
-
setPermissionTypeDb
type of permission, either assigned to role, or assigned to role and user combined: role_subject- Parameters:
permissionTypeDb1
-
-
getPermissionType
PermissionEntry.PermissionType getPermissionType()type of permission, either assigned to role, or assigned to role and user combined: role_subject- Returns:
- permission type
-
getMembershipId
String getMembershipId()id of the membership row- Returns:
- id of the membership row
-
isImmediate
- Parameters:
thePermissionType
-- Returns:
- if immediate, considering which permission type we are looking at
-
isImmediateMembership
boolean isImmediateMembership()see if the membership is unassignable directly- Returns:
- true if immediate
-
isImmediatePermission
boolean isImmediatePermission()see if the permission is unassignable directly- Returns:
- true if immediate
-
setMembershipId
id of the membership row- Parameters:
membershipId1
-
-
getAttributeAssignId
String getAttributeAssignId()id of the attribute assign row, either to the role, or to the role member pair- Returns:
- id
-
setAttributeAssignId
id of the attribute assign row, either to the role, or to the role member pair- Parameters:
attributeAssignId1
-
-
getDisallowedDb
String getDisallowedDb()if this is a permission, then if this permission assignment is allowed or not- Returns:
- the allowed
-
isDisallowed
boolean isDisallowed()if this is a permission, then if this permission assignment is allowed or not- Returns:
- if allowed
-
setDisallowed
void setDisallowed(boolean disallowed1) if this is a permission, then if this permission assignment is allowed or not- Parameters:
disallowed1
- the allowed to set
-
setDisallowedDb
if this is a permission, then if this permission assignment is allowed or not- Parameters:
disallowed1
- the allowed to set
-
getEndTime
Timestamp getEndTime()The end time for this permission entry. This is for point in time.- Returns:
- end time
-
getStartTime
Timestamp getStartTime()The start time for this permission entry. This is for point in time.- Returns:
- start time
-
isActive
boolean isActive()Whether this permission entry currently exists. If the object is not from point in time, this is always true.- Returns:
- true if active
-