com.atlassian.crowd.model.application
Class DirectoryMapping
java.lang.Object
com.atlassian.crowd.model.application.DirectoryMapping
- All Implemented Interfaces:
- java.io.Serializable
public class DirectoryMapping
- extends java.lang.Object
- implements java.io.Serializable
Represents a mapping between an application and a directory.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DirectoryMapping
protected DirectoryMapping()
DirectoryMapping
public DirectoryMapping(java.lang.Long id,
Application application,
Directory directory,
boolean allowAllToAuthenticate)
- Constructor used by XML import.
- Parameters:
id - ID of the directory mappingapplication - Application to mapdirectory - Directory to mapallowAllToAuthenticate - set to true if all users in this directory are allowed to authenticate.
DirectoryMapping
public DirectoryMapping(Application application,
Directory directory,
boolean allowAllToAuthenticate)
DirectoryMapping
public DirectoryMapping(Application application,
Directory directory,
boolean allowAllToAuthenticate,
java.util.Set<OperationType> allowedOperations)
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.