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

public class RequestAccess extends Object implements Serializable
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)
    • 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()
    • 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 OperationResult 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)
    • 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()