Class RequestAccess
java.lang.Object
com.evolveum.midpoint.gui.impl.page.self.requestAccess.RequestAccess
- All Implemented Interfaces:
DebugDumpable,Serializable
Created by Viliam Repan (lazyman).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final List<ValidityPredefinedValueType>static final StringFields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_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) booleanbooleancanAddTemplateAssignment(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) Show the content of the object intended for diagnostics by system administrator.debugDump(int indent) getAccessRequestConfiguration(org.apache.wicket.Page page) getAssignableRolesFilter(PageBase page, Class<? extends AbstractRoleType> targetType) getAssignableRolesFilter(PrismObject<UserType> focus, PageBase page, Class<? extends AbstractRoleType> targetType) longgetNewPersonOfInterestOids(List<ObjectReferenceType> newPersonOfInterestRefs) Returns the list of new person of interest oids that are not yet in the requestItems.intgetShoppingCartAssignments(ObjectReferenceType personOfInterestRef) longbooleanbooleanisAssignedToAll(String oid) booleanisAssignedToNone(String oid) booleannewPersonOfInterestExists(List<ObjectReferenceType> newPersonOfInterestRefs) voidremoveAssignments(List<AssignmentType> assignments) voidsetComment(String comment) voidsetPoiGroupSelectionIdentifier(String poiGroupSelectionIdentifier) voidsetPoiMyself(Boolean poiMyself) voidsetRelation(QName relation) voidvoidsetSelectedValidity(Object selectedValidity) voidsetValidityDuration(Duration validity) voidsolveConflict(Conflict conflict, ConflictItem toRemove) submitRequest(PageBase page) voidupdateSelectedAssignment(AssignmentType updated) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDumpLazily, debugDumpLazily
-
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) -
newPersonOfInterestExists
-
getNewPersonOfInterestOids
Returns the list of new person of interest oids that are not yet in the requestItems.- Parameters:
newPersonOfInterestRefs-- Returns:
-
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() -
areShoppingCartItemsRelatedToConflicts
public boolean areShoppingCartItemsRelatedToConflicts() -
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
-
setValidityDuration
-
setRequestItemsValidity
-
getAssignableRolesFilter
public ObjectFilter getAssignableRolesFilter(PageBase page, Class<? extends AbstractRoleType> targetType) -
getAssignableRolesFilter
public ObjectFilter getAssignableRolesFilter(PrismObject<UserType> focus, 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. -
getPoiCount
public int getPoiCount() -
debugDump
Description copied from interface:DebugDumpableShow the content of the object intended for diagnostics by system administrator. The out put should be suitable to use in system logs at "debug" level. It may be multi-line, but in that case it should be well indented and quite terse. As it is intended to be used by system administrator, it should not use any developer terms such as class names, exceptions or stack traces.- Specified by:
debugDumpin interfaceDebugDumpable- Returns:
- content of the object intended for diagnostics by system administrator.
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-