Class DirectoryMapping
java.lang.Object
com.atlassian.crowd.model.application.DirectoryMapping
- All Implemented Interfaces:
ApplicationDirectoryMapping,Serializable
@Deprecated
public class DirectoryMapping
extends Object
implements Serializable, ApplicationDirectoryMapping
Deprecated.
Represents a mapping between an application and a directory. Only directories with a mapping to an application are
visible to the application.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated.DirectoryMapping(Application application, Directory directory, boolean allowAllToAuthenticate) Deprecated.Constructs a new DirectoryMapping.DirectoryMapping(Application application, Directory directory, boolean allowAllToAuthenticate, Set<OperationType> allowedOperations) Deprecated.Constructs a new DirectoryMapping.DirectoryMapping(Long id, Application application, Directory directory, boolean allowAllToAuthenticate) Deprecated.Constructs a new DirectoryMapping. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllowedOperation(OperationType operationType) Deprecated.Add a new operation that the application is allowed to perform on the directory.voidaddAllowedOperations(OperationType... operationTypes) Deprecated.Adds a list of operations that the application is allowed to perform on the directory.voidaddGroupMapping(String groupName) Deprecated.Adds a mapping to a new authorised group.booleanDeprecated.static DirectoryMappingfromApplicationDirectoryMapping(Application application, ApplicationDirectoryMapping applicationDirectoryMapping) Deprecated.Deprecated.Returns a set of operations that the application is allowed to perform on the directory.Deprecated.Returns the mapped application.Deprecated.Returns a set of mappings to groups that are authorised to authenticate with the application.Deprecated.Deprecated.Returns the mapped directory.getGroupMapping(String groupName) Deprecated.Returns a GroupMapping if it exists, otherwise returns nullgetId()Deprecated.Returns the ID of the directory mapping.inthashCode()Deprecated.booleanDeprecated.Returnstrueif all the users in the directory are allowed to authenticate with the application.booleanisAllowed(OperationType operation) Deprecated.Returnstrueif the application is allowed to perform the specified operation on the directory.booleanisAuthorised(String groupName) Deprecated.Returnstrueif the group is an authorised group.voidremoveGroupMapping(String groupName) Deprecated.Unauthorises a group.voidsetAllowAllToAuthenticate(boolean allowAllToAuthenticate) Deprecated.Sets whether all the users in the directory are allowed to authenticate with the application.voidsetAllowedOperations(Set<OperationType> allowedOperations) Deprecated.Sets (i.e.voidsetAuthorisedGroups(Set<GroupMapping> authorisedGroups) Deprecated.
-
Constructor Details
-
DirectoryMapping
protected DirectoryMapping()Deprecated. -
DirectoryMapping
public DirectoryMapping(Long id, Application application, Directory directory, boolean allowAllToAuthenticate) Deprecated.Constructs a new DirectoryMapping. Used by XML import.- Parameters:
id- ID of the directory mappingapplication- Application to mapdirectory- Directory to mapallowAllToAuthenticate- set totrueif all users indirectoryare allowed to authenticate
-
DirectoryMapping
public DirectoryMapping(Application application, Directory directory, boolean allowAllToAuthenticate) Deprecated.Constructs a new DirectoryMapping.- Parameters:
application- application to mapdirectory- directory to mapallowAllToAuthenticate- set totrueif all users indirectoryare allowed to authenticate
-
DirectoryMapping
public DirectoryMapping(Application application, Directory directory, boolean allowAllToAuthenticate, Set<OperationType> allowedOperations) Deprecated.Constructs a new DirectoryMapping.- Parameters:
application- application to mapdirectory- directory to mapallowAllToAuthenticate- set totrueif all users indirectoryare allowed to authenticateallowedOperations- the set of operations the application is allowed to perform on the directory
-
-
Method Details
-
getId
Deprecated.Returns the ID of the directory mapping. -
getApplication
Deprecated.Returns the mapped application.- Returns:
- mapped application
-
getDirectory
Deprecated.Returns the mapped directory.- Specified by:
getDirectoryin interfaceApplicationDirectoryMapping- Returns:
- mapped directory
-
isAllowAllToAuthenticate
public boolean isAllowAllToAuthenticate()Deprecated.Description copied from interface:ApplicationDirectoryMappingReturnstrueif all the users in the directory are allowed to authenticate with the application. If the value is false, then the user is required to be in an authorised group.- Specified by:
isAllowAllToAuthenticatein interfaceApplicationDirectoryMapping- Returns:
trueif all the users in the directory are allowed to authenticate with the application- See Also:
-
setAllowAllToAuthenticate
public void setAllowAllToAuthenticate(boolean allowAllToAuthenticate) Deprecated.Sets whether all the users in the directory are allowed to authenticate with the application.- Parameters:
allowAllToAuthenticate- set totrueif all the users in the directory are allowed to authenticate with the application.
-
getAuthorisedGroupNames
Deprecated.Description copied from interface:ApplicationDirectoryMappingReturns a set of mappings to groups that are authorised to authenticate with the application. This set is not used ifApplicationDirectoryMapping.isAllowAllToAuthenticate()returnstrue.- Specified by:
getAuthorisedGroupNamesin interfaceApplicationDirectoryMapping- Returns:
- set of mappings to groups that are authorised to authenticate with the application
-
getAuthorisedGroups
Deprecated. -
setAuthorisedGroups
Deprecated. -
isAuthorised
Deprecated.Returnstrueif the group is an authorised group. i.e. it is allowed- Parameters:
groupName- name of group- Returns:
trueif the group is an authorised group.
-
getGroupMapping
Deprecated.Returns a GroupMapping if it exists, otherwise returns null- Parameters:
groupName- name of the group to find- Returns:
- the GroupMapping or null
-
addGroupMapping
Deprecated.Adds a mapping to a new authorised group.- Parameters:
groupName- name of new authorised group
-
removeGroupMapping
Deprecated.Unauthorises a group.- Parameters:
groupName- name of group to unauthorise
-
addAllowedOperations
Deprecated.Adds a list of operations that the application is allowed to perform on the directory.- Parameters:
operationTypes- list of operations that the application is allowed to perform on the directory
-
addAllowedOperation
Deprecated.Add a new operation that the application is allowed to perform on the directory.- Parameters:
operationType- new operation that the application is allowed to perform on the directory
-
getAllowedOperations
Deprecated.Description copied from interface:ApplicationDirectoryMappingReturns a set of operations that the application is allowed to perform on the directory.- Specified by:
getAllowedOperationsin interfaceApplicationDirectoryMapping- Returns:
- set of operations that the application is allowed to perform on the directory
-
setAllowedOperations
Deprecated.Sets (i.e. replaces) the list of operations that the application is allowed to perform on the directory.- Parameters:
allowedOperations- set of operations that the application is allowed to perform on the directory
-
isAllowed
Deprecated.Returnstrueif the application is allowed to perform the specified operation on the directory.- Parameters:
operation- operation to check- Returns:
trueif the application is allowed to perform the specified operation on the directory
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
fromApplicationDirectoryMapping
public static DirectoryMapping fromApplicationDirectoryMapping(Application application, ApplicationDirectoryMapping applicationDirectoryMapping) Deprecated.
-
ApplicationDirectoryMappinginstead. Since 2.12.