Class RequestAccess
java.lang.Object
com.evolveum.midpoint.gui.impl.page.self.requestAccess.RequestAccess
- All Implemented Interfaces:
Serializable
Created by Viliam Repan (lazyman).
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final List<ValidityPredefinedValueType>
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAssignments
(List<AssignmentType> assignments) void
addPersonOfInterest
(ObjectReferenceType ref, List<ObjectReferenceType> existingMemberships) void
addPersonOfInterest
(List<ObjectReferenceType> refs, Map<ObjectReferenceType, List<ObjectReferenceType>> existingMemberships) boolean
canAddTemplateAssignment
(ObjectReferenceType newTargetRef) This method checks if there is already assignment for specific role in shopping cart - matching is done based on targetRef oid and relation.boolean
void
void
computeConflicts
(PageBase page) computeConflictsForOnePerson
(ObjectReferenceType ref, Task task, PageBase page) getAccessRequestConfiguration
(org.apache.wicket.Page page) getAssignableRolesFilter
(PageBase page, Class<? extends AbstractRoleType> targetType) long
int
getShoppingCartAssignments
(ObjectReferenceType personOfInterestRef) long
boolean
boolean
isAssignedToAll
(String oid) boolean
isAssignedToNone
(String oid) void
removeAssignments
(List<AssignmentType> assignments) void
setComment
(String comment) void
setPoiGroupSelectionIdentifier
(String poiGroupSelectionIdentifier) void
setPoiMyself
(Boolean poiMyself) void
setRelation
(QName relation) void
setSelectedValidity
(Object selectedValidity) void
setValidity
(Duration validity) void
void
solveConflict
(Conflict conflict, ConflictItem toRemove) submitRequest
(PageBase page) void
updateSelectedAssignment
(AssignmentType updated)
-
Field Details
-
DEFAULT_VALIDITY_PERIODS
-
VALIDITY_CUSTOM_LENGTH
- See Also:
-
DEFAULT_MYSELF_IDENTIFIER
- See Also:
-
-
Constructor Details
-
RequestAccess
public RequestAccess()
-
-
Method Details
-
getExistingPoiRoleMemberships
-
isPoiMyself
-
setPoiMyself
-
getPoiGroupSelectionIdentifier
-
setPoiGroupSelectionIdentifier
-
getSelectedValidity
-
setSelectedValidity
-
getTemplateAssignments
-
getConflicts
-
getComment
-
setComment
-
getPersonOfInterest
-
addPersonOfInterest
public void addPersonOfInterest(ObjectReferenceType ref, List<ObjectReferenceType> existingMemberships) -
addPersonOfInterest
public void addPersonOfInterest(List<ObjectReferenceType> refs, Map<ObjectReferenceType, List<ObjectReferenceType>> existingMemberships) -
addAssignments
- Parameters:
assignments
- list of assignments containing only targetRef and nothing else (without any activation, extension, etc.)
-
removeAssignments
- Parameters:
assignments
- list of assignments that may contain items other than targetRef (activation, extension, etc.)
-
getShoppingCartAssignments
-
getShoppingCartAssignments
-
getShoppingCartItems
-
getRelation
-
setRelation
-
getDefaultRelation
-
getWarningCount
public long getWarningCount() -
getErrorCount
public long getErrorCount() -
clearCart
public void clearCart() -
canSubmit
public boolean canSubmit() -
computeConflicts
-
computeConflictsForOnePerson
public List<Conflict> computeConflictsForOnePerson(ObjectReferenceType ref, Task task, PageBase page) -
solveConflict
-
isAllConflictsSolved
public boolean isAllConflictsSolved() -
submitRequest
-
getValidity
-
setValidity
-
setValidity
-
getAssignableRolesFilter
public ObjectFilter getAssignableRolesFilter(PageBase page, Class<? extends AbstractRoleType> targetType) -
getAvailableRelations
-
getAccessRequestConfiguration
-
isAssignedToAll
-
isAssignedToNone
-
updateSelectedAssignment
-
canAddTemplateAssignment
This method checks if there is already assignment for specific role in shopping cart - matching is done based on targetRef oid and relation. Matching takes into accountAssignmentConstraintsType
.- Parameters:
newTargetRef
-- Returns:
-
getPoiCount
public int getPoiCount()
-