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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final List<ValidityPredefinedValueType>static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssignments(List<AssignmentType> assignments) voidaddPersonOfInterest(ObjectReferenceType ref, List<ObjectReferenceType> existingMemberships) voidaddPersonOfInterest(List<ObjectReferenceType> refs, Map<ObjectReferenceType, List<ObjectReferenceType>> existingMemberships) booleancanAddTemplateAssignment(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.booleanvoidvoidcomputeConflicts(PageBase page) computeConflictsForOnePerson(ObjectReferenceType ref, Task task, PageBase page) getAccessRequestConfiguration(org.apache.wicket.Page page) getAssignableRolesFilter(PageBase page, Class<? extends AbstractRoleType> targetType) longintgetShoppingCartAssignments(ObjectReferenceType personOfInterestRef) longbooleanbooleanisAssignedToAll(String oid) booleanisAssignedToNone(String oid) voidremoveAssignments(List<AssignmentType> assignments) voidsetComment(String comment) voidsetPoiGroupSelectionIdentifier(String poiGroupSelectionIdentifier) voidsetPoiMyself(Boolean poiMyself) voidsetRelation(QName relation) voidsetSelectedValidity(Object selectedValidity) voidsetValidity(Duration validity) voidvoidsolveConflict(Conflict conflict, ConflictItem toRemove) submitRequest(PageBase page) voidupdateSelectedAssignment(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()
-