public abstract class JahiaGroup extends Object implements JahiaPrincipal, Group
Principals which can be users
or groups. A group can have subgroups holding again users or subgroups.
Each group is defined with a name, which is unique inside a site, but not
necessarily unique between two sites. Each group has also a unique
identification key, which is unique in the database. This way, a group is
uniquely identified in all the sites and Jahia servers sharing the same
database.
The group names are used only to present an intuitive signification for the
administrators of each site. As the key is the only way to assure unicity
between the sites and servers, it will be used to represent the group inside
of jahia and not the group name.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hidden |
protected Map<String,Boolean> |
membership |
protected String |
mGroupKey
Group global identification key, unique in all the sites and Jahia
servers sharing the same groups data source.
|
protected String |
mGroupname
Group unique identification name
|
protected Set<Principal> |
mMembers
Map holding all the group members.
|
protected int |
mSiteID
The site id
|
protected boolean |
preloadedGroups |
| Constructor and Description |
|---|
JahiaGroup() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
addMember(Principal principal)
Deprecated.
|
abstract void |
addMembers(Collection<Principal> principals)
Deprecated.
|
boolean |
equals(Object another)
Compares this principal to the specified object.
|
String |
getGroupKey()
Return the group key.
|
String |
getGroupname()
Returns the name of this group.
|
Collection<Principal> |
getMembers()
Deprecated.
|
protected abstract Set<Principal> |
getMembersMap()
Deprecated.
|
String |
getName()
Returns the unique identifier of this principal object.
|
abstract Properties |
getProperties()
Get grp's properties list.
|
abstract String |
getProperty(String key)
Retrieve the requested grp property.
|
abstract String |
getProviderName()
Deprecated.
|
Set<Principal> |
getRecursiveUserMembers()
Deprecated.
|
int |
getSiteID()
Deprecated.
use siteKey instead
|
abstract int |
hashCode()
Returns a hashcode for this principal.
|
boolean |
isHidden() |
boolean |
isMember(Principal principal)
Deprecated.
|
boolean |
isPreloadedGroups() |
Enumeration<Principal> |
members()
Deprecated.
use getMembers
|
abstract boolean |
removeMember(Principal principal)
Deprecated.
|
boolean |
removeMembers()
Deprecated.
|
abstract boolean |
removeProperty(String key)
Deprecated.
|
void |
setHidden(boolean hidden) |
abstract boolean |
setProperty(String key,
String value)
Deprecated.
|
abstract String |
toString()
Returns a string representation of this group.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLocalPathprotected String mGroupname
protected String mGroupKey
protected boolean hidden
protected int mSiteID
protected boolean preloadedGroups
public abstract Properties getProperties()
public abstract String getProperty(String key)
key - Property's name.public abstract boolean removeProperty(String key)
key - Property's name.public abstract boolean setProperty(String key, String value)
key - Property's name.value - Property's value.public abstract boolean addMember(Principal principal)
public abstract void addMembers(Collection<Principal> principals)
principals - The principals to add to this group.public boolean equals(Object another)
public String getGroupKey()
public String getName()
public String getGroupname()
public int getSiteID()
public abstract int hashCode()
public boolean isMember(Principal principal)
public Enumeration<Principal> members()
Principal or Group.
Note that the Group is an instantiation of the
Principal class.public Collection<Principal> getMembers()
protected abstract Set<Principal> getMembersMap()
public Set<Principal> getRecursiveUserMembers()
public abstract boolean removeMember(Principal principal)
removeMember in interface Groupprincipal - The principal to remove from this group.public boolean removeMembers()
public abstract String toString()
public abstract String getProviderName()
getProviderName in interface JahiaPrincipalpublic boolean isPreloadedGroups()
public boolean isHidden()
public void setHidden(boolean hidden)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.