com.atlassian.crowd.model.group
Class DelegatingGroupWithAttributes
java.lang.Object
com.atlassian.crowd.embedded.impl.AbstractDelegatingEntityWithAttributes
com.atlassian.crowd.model.group.DelegatingGroupWithAttributes
- All Implemented Interfaces:
- com.atlassian.crowd.embedded.api.Attributes, DirectoryEntity, Group, GroupWithAttributes, Comparable<Group>
public class DelegatingGroupWithAttributes
- extends com.atlassian.crowd.embedded.impl.AbstractDelegatingEntityWithAttributes
- implements GroupWithAttributes
Implementation of GroupWithAttributes that simply delegates to an underlying Group and Attributes object.
Instances of this class will be effectively immutable so long as either:
- It is constructed with immutable objects.
or,
- The mutable objects it is constructed with are not "leaked".
| Methods inherited from interface com.atlassian.crowd.embedded.api.Attributes |
getKeys, getValue, getValues, isEmpty |
DelegatingGroupWithAttributes
public DelegatingGroupWithAttributes(Group group,
com.atlassian.crowd.embedded.api.Attributes attributes)
getDirectoryId
public long getDirectoryId()
- Specified by:
getDirectoryId in interface DirectoryEntity
getName
public String getName()
- Specified by:
getName in interface DirectoryEntity
isActive
public boolean isActive()
- Specified by:
isActive in interface Group
getDescription
public String getDescription()
- Specified by:
getDescription in interface Group
getType
public GroupType getType()
- Specified by:
getType in interface Group
equals
public boolean equals(Object o)
- Specified by:
equals in interface DirectoryEntity- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface DirectoryEntity- Overrides:
hashCode in class Object
compareTo
public int compareTo(Group other)
- Specified by:
compareTo in interface Comparable<Group>
Copyright © 2014 Atlassian. All Rights Reserved.