com.atlassian.crowd.model.application
Class DirectoryMapping

java.lang.Object
  extended by com.atlassian.crowd.model.application.DirectoryMapping
All Implemented Interfaces:
java.io.Serializable

public class DirectoryMapping
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
protected DirectoryMapping()
           
  DirectoryMapping(Application application, Directory directory, boolean allowAllToAuthenticate)
           
  DirectoryMapping(Application application, Directory directory, boolean allowAllToAuthenticate, java.util.Set<OperationType> allowedOperations)
           
  DirectoryMapping(java.lang.Long id, Application application, Directory directory, boolean allowAllToAuthenticate)
          Constructor used by XML import.
 
Method Summary
 void addAllowedOperation(OperationType operationType)
           
 void addAllowedOperations(OperationType... operationTypes)
           
 void addGroupMapping(java.lang.String groupName)
           
 boolean equals(java.lang.Object o)
           
 java.util.Set<OperationType> getAllowedOperations()
           
 Application getApplication()
           
 java.util.Set<GroupMapping> getAuthorisedGroups()
           
 Directory getDirectory()
           
 java.lang.Long getId()
           
 int hashCode()
           
 boolean isAllowAllToAuthenticate()
           
 boolean isAllowed(OperationType operation)
           
 boolean isAuthorised(java.lang.String groupName)
           
 void removeGroupMapping(java.lang.String groupName)
           
 void setAllowAllToAuthenticate(boolean allowAllToAuthenticate)
           
 void setAllowedOperations(java.util.Set<OperationType> allowedOperations)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryMapping

protected DirectoryMapping()

DirectoryMapping

public DirectoryMapping(java.lang.Long id,
                        Application application,
                        Directory directory,
                        boolean allowAllToAuthenticate)
Constructor used by XML import.

Parameters:
id -
application -
directory -
allowAllToAuthenticate -

DirectoryMapping

public DirectoryMapping(Application application,
                        Directory directory,
                        boolean allowAllToAuthenticate)

DirectoryMapping

public DirectoryMapping(Application application,
                        Directory directory,
                        boolean allowAllToAuthenticate,
                        java.util.Set<OperationType> allowedOperations)
Method Detail

getId

public java.lang.Long getId()

getApplication

public Application getApplication()

getDirectory

public Directory getDirectory()

isAllowAllToAuthenticate

public boolean isAllowAllToAuthenticate()

setAllowAllToAuthenticate

public void setAllowAllToAuthenticate(boolean allowAllToAuthenticate)

getAuthorisedGroups

public java.util.Set<GroupMapping> getAuthorisedGroups()

isAuthorised

public boolean isAuthorised(java.lang.String groupName)

addGroupMapping

public void addGroupMapping(java.lang.String groupName)

removeGroupMapping

public void removeGroupMapping(java.lang.String groupName)

addAllowedOperations

public void addAllowedOperations(OperationType... operationTypes)

addAllowedOperation

public void addAllowedOperation(OperationType operationType)

getAllowedOperations

public java.util.Set<OperationType> getAllowedOperations()

setAllowedOperations

public void setAllowedOperations(java.util.Set<OperationType> allowedOperations)

isAllowed

public boolean isAllowed(OperationType operation)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2010 Atlassian. All Rights Reserved.