java.lang.Object
com.evolveum.midpoint.gui.impl.page.self.requestAccess.RequestAccess
All Implemented Interfaces:
DebugDumpable, Serializable

public class RequestAccess extends Object implements Serializable, DebugDumpable
Created by Viliam Repan (lazyman).
See Also:
  • Field Details

  • Constructor Details

    • RequestAccess

      public RequestAccess()
  • Method Details

    • getExistingPoiRoleMemberships

      public Map<ObjectReferenceType,List<ObjectReferenceType>> getExistingPoiRoleMemberships()
    • isPoiMyself

      public Boolean isPoiMyself()
    • setPoiMyself

      public void setPoiMyself(Boolean poiMyself)
    • getPoiGroupSelectionIdentifier

      public String getPoiGroupSelectionIdentifier()
    • setPoiGroupSelectionIdentifier

      public void setPoiGroupSelectionIdentifier(String poiGroupSelectionIdentifier)
    • getSelectedValidity

      public Object getSelectedValidity()
    • setSelectedValidity

      public void setSelectedValidity(Object selectedValidity)
    • getTemplateAssignments

      public Set<AssignmentType> getTemplateAssignments()
    • getConflicts

      public List<Conflict> getConflicts()
    • getComment

      public String getComment()
    • setComment

      public void setComment(String comment)
    • getPersonOfInterest

      public List<ObjectReferenceType> getPersonOfInterest()
    • addPersonOfInterest

      public void addPersonOfInterest(ObjectReferenceType ref, List<ObjectReferenceType> existingMemberships)
    • addPersonOfInterest

      public void addPersonOfInterest(List<ObjectReferenceType> refs, Map<ObjectReferenceType,List<ObjectReferenceType>> existingMemberships)
    • newPersonOfInterestExists

      public boolean newPersonOfInterestExists(List<ObjectReferenceType> newPersonOfInterestRefs)
    • getNewPersonOfInterestOids

      public List<String> getNewPersonOfInterestOids(List<ObjectReferenceType> newPersonOfInterestRefs)
      Returns the list of new person of interest oids that are not yet in the requestItems.
      Parameters:
      newPersonOfInterestRefs -
      Returns:
    • addAssignments

      public void addAssignments(List<AssignmentType> assignments)
      Parameters:
      assignments - list of assignments containing only targetRef and nothing else (without any activation, extension, etc.)
    • removeAssignments

      public void removeAssignments(List<AssignmentType> assignments)
      Parameters:
      assignments - list of assignments that may contain items other than targetRef (activation, extension, etc.)
    • getShoppingCartAssignments

      public List<AssignmentType> getShoppingCartAssignments()
    • getShoppingCartAssignments

      public List<AssignmentType> getShoppingCartAssignments(ObjectReferenceType personOfInterestRef)
    • getShoppingCartItems

      public List<ShoppingCartItem> getShoppingCartItems()
    • getRelation

      public QName getRelation()
    • setRelation

      public void setRelation(QName relation)
    • getDefaultRelation

      public QName getDefaultRelation()
    • getWarningCount

      public long getWarningCount()
    • areShoppingCartItemsRelatedToConflicts

      public boolean areShoppingCartItemsRelatedToConflicts()
    • getErrorCount

      public long getErrorCount()
    • clearCart

      public void clearCart()
    • canSubmit

      public boolean canSubmit()
    • computeConflicts

      public void computeConflicts(PageBase page)
    • computeConflictsForOnePerson

      public List<Conflict> computeConflictsForOnePerson(ObjectReferenceType ref, Task task, PageBase page)
    • solveConflict

      public void solveConflict(Conflict conflict, ConflictItem toRemove)
    • isAllConflictsSolved

      public boolean isAllConflictsSolved()
    • submitRequest

      public SubmissionResult submitRequest(PageBase page)
    • getValidity

      public Duration getValidity()
    • setValidityDuration

      public void setValidityDuration(Duration validity)
    • setRequestItemsValidity

      public void setRequestItemsValidity(XMLGregorianCalendar from, XMLGregorianCalendar to)
    • getAssignableRolesFilter

      public ObjectFilter getAssignableRolesFilter(PageBase page, Class<? extends AbstractRoleType> targetType)
    • getAssignableRolesFilter

      public ObjectFilter getAssignableRolesFilter(PrismObject<UserType> focus, PageBase page, Class<? extends AbstractRoleType> targetType)
    • getAvailableRelations

      public List<QName> getAvailableRelations(PageBase page)
    • getAccessRequestConfiguration

      public AccessRequestType getAccessRequestConfiguration(org.apache.wicket.Page page)
    • isAssignedToAll

      public boolean isAssignedToAll(String oid)
    • isAssignedToNone

      public boolean isAssignedToNone(String oid)
    • updateSelectedAssignment

      public void updateSelectedAssignment(AssignmentType updated)
    • canAddTemplateAssignment

      public 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. Matching takes into account AssignmentConstraintsType.
    • getPoiCount

      public int getPoiCount()
    • debugDump

      public String debugDump()
      Description copied from interface: DebugDumpable
      Show 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:
      debugDump in interface DebugDumpable
      Returns:
      content of the object intended for diagnostics by system administrator.
    • debugDump

      public String debugDump(int indent)
      Specified by:
      debugDump in interface DebugDumpable