com.atlassian.crowd.model.application
Class GroupMapping

java.lang.Object
  extended by com.atlassian.crowd.model.application.GroupMapping

public class GroupMapping
extends Object


Nested Class Summary
static class GroupMapping.COMPARATOR
           
 
Constructor Summary
protected GroupMapping()
           
  GroupMapping(DirectoryMapping directoryMapping, String groupName)
          Constructs a new GroupMapping.
  GroupMapping(Long id, DirectoryMapping directoryMapping, String groupName)
          Constructs a new GroupMapping with the specified group mapping ID.
 
Method Summary
 boolean equals(Object o)
           
 Application getApplication()
          Returns the application of this mapping.
 Directory getDirectory()
          Returns the directory of the group.
 DirectoryMapping getDirectoryMapping()
          Returns the directory mapping.
 String getGroupName()
          Returns the name of the group being mapped.
 Long getId()
          Returns the group mapping ID.
 int hashCode()
           
 void setApplication(Application application)
          Sets the application of this mapping.
 void setDirectory(Directory directory)
          Sets the directory of this group.
 void setDirectoryMapping(DirectoryMapping directoryMapping)
          Sets the directory mapping.
 void setGroupName(String groupName)
          Sets the name of the group being mapped.
 void setId(Long id)
          Sets the group mapping ID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupMapping

protected GroupMapping()

GroupMapping

public GroupMapping(Long id,
                    DirectoryMapping directoryMapping,
                    String groupName)
Constructs a new GroupMapping with the specified group mapping ID. Used by XML import.

Parameters:
id - group mapping ID
directoryMapping - mapping of a directory to an application
groupName - name of group to map

GroupMapping

public GroupMapping(DirectoryMapping directoryMapping,
                    String groupName)
Constructs a new GroupMapping.

Parameters:
directoryMapping - mapping of a directory to an application
groupName - name of group to map
Method Detail

getId

public Long getId()
Returns the group mapping ID.

Returns:
the group mapping ID

setId

public void setId(Long id)
Sets the group mapping ID.

Parameters:
id - group mapping ID

getApplication

public Application getApplication()
Returns the application of this mapping.

Returns:
application of the mapping

setApplication

public void setApplication(Application application)
Sets the application of this mapping.

Parameters:
application - application

getDirectory

public Directory getDirectory()
Returns the directory of the group.

Returns:
directory of the group

setDirectory

public void setDirectory(Directory directory)
Sets the directory of this group.

Parameters:
directory - directory of the group

getGroupName

public String getGroupName()
Returns the name of the group being mapped.

Returns:
name of the group being mapped

setGroupName

public void setGroupName(String groupName)
Sets the name of the group being mapped.

Parameters:
groupName - name of the group being mapped

getDirectoryMapping

public DirectoryMapping getDirectoryMapping()
Returns the directory mapping.

Returns:
directory mapping

setDirectoryMapping

public void setDirectoryMapping(DirectoryMapping directoryMapping)
Sets the directory mapping.

Parameters:
directoryMapping - directory mapping

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 Atlassian. All Rights Reserved.