|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.channels.groupsmanager.GroupsManagerXML
@Deprecated public class GroupsManagerXML
Contains a groups of static methods used to centralize the generation and retrieval of xml elements for groups and entities.
| Field Summary |
|---|
| Fields inherited from interface org.jasig.portal.channels.groupsmanager.GroupsManagerConstants |
|---|
ADD_REMOVE_PERMISSION, ASSIGN_PERMISSION, BASE_PACKAGE, BROWSE_MODE, COMMANDS_PACKAGE, CREATE_PERMISSION, DELETE_PERMISSION, EDIT_MODE, ENTITY_CLASSNAME, ENTITY_TAGNAME, GROUP_CLASSNAME, GROUP_TAGNAME, GROUPS_PACKAGE, MEMBERS_ONLY_MODE, OWNER, PROPERTIES_TAGNAME, ROOT_GROUP_DESCRIPTION, ROOT_GROUP_TITLE, SECURITY_PACKAGE, SELECT_MODE, SELECT_PERMISSION, UPDATE_PERMISSION, VIEW_PERMISSION, WRAPPERS_PACKAGE |
| Constructor Summary | |
|---|---|
GroupsManagerXML()
Deprecated. |
|
| Method Summary | |
|---|---|
static void |
clearPropertiesCache(IGroupMember gm)
Deprecated. Removes all EntityProperites for a GroupMember from the Entity Property cache. |
static Element |
createElement(String name,
Document xmlDoc,
boolean setGrpDefault)
Deprecated. Creates an element for the provided Document. |
static void |
createPermissions(CGroupsManagerSessionData sessionData,
IEntityGroup childEntGrp)
Deprecated. Creates permissions to a group for the current user and generates permission elements |
static Element |
createRdfElement(IEntityGroup entGrp,
Document xmlDoc)
Deprecated. Returns an RDF element for the provided Document |
static void |
expandGroupElementXML(Element expandedElem,
CGroupsManagerUnrestrictedSessionData sd)
Deprecated. Expands an element |
static Element |
getAuthorizationXml(ChannelStaticData sd,
Element apRoot,
Document xmlDoc)
Deprecated. Returns an element holding the user's permissions used to determine access privileges in the Groups Manager channel. |
static Element |
getElementById(Document aDoc,
String id)
Deprecated. Returns an element from an xml document for a unique id. |
static Element |
getElementByTagNameAndId(Document aDoc,
String tagname,
String id)
Deprecated. Returns an Element from a Document for a tagname and element id |
static String |
getElementValueForTagName(Element anElem,
String tagname)
Deprecated. Returns the value of an element for a given name |
static String |
getEntityName(Class typClass,
String aKey)
Deprecated. Returns a name from the EntityNameFinderService, for a key and class |
static String |
getEntityName(String className,
String aKey)
Deprecated. Returns a name from the EntityNameFinderService, for a key and classname |
static HashMap |
getEntityTypes()
Deprecated. Returns a HashMap of entity types. |
static Element |
getEntityTypesXml(Document xmlDoc)
Deprecated. Returns an element holding the entity types used in uPortal. |
static Element |
getExpandedElementForTagNameAndKey(Document aDoc,
String tagname,
String key)
Deprecated. Returns an Element with the expanded attribute set to true from a Document for a tagname and IGroupMember key. |
static Element |
getGroupMemberXml(IGroupMember gm,
boolean isContextExpanded,
Element anElem,
CGroupsManagerUnrestrictedSessionData sd)
Deprecated. Returns an Element for an IGroupMember. |
static Document |
getGroupsManagerXml(CGroupsManagerSessionData sessionData)
Deprecated. Returns a Document with an element for each IEntityType that has a root group. |
static Document |
getNewDocument()
Deprecated. Returns a new Document |
static String |
getNextUid()
Deprecated. Returns the next sequential identifier which is used to uniquely identify an element. |
static Iterator |
getNodesById(Document aDoc,
String id)
Deprecated. Even though we know we will find a single element, we sometimes want it returned in an iterator in order to streamline processing. |
static Iterator |
getNodesByTagNameAndKey(Document aDoc,
String tagname,
String key)
Deprecated. Returns an iterator of Nodes for a Document for a tagname and IGroupMember key |
static Iterator |
getNodesByTagNameAndKey(Element anElem,
String tagname,
String key)
Deprecated. Returns an iterator of Nodes for an Element for a tagname and IGroupMember key |
static Element |
getPermissionXml(Document xmlDoc,
String prmPrincipal,
String prmActivity,
String prmType,
String prmTarget)
Deprecated. Returns an element for a permission. |
static String |
getTagName(IGroupMember gm)
Deprecated. Returns the xml tagname for a GroupMember |
static IGroupsManagerWrapper |
getWrapper(String type)
Deprecated. Returns a group member wrapper. |
static boolean |
isPersistentGroup(Element anElem)
Deprecated. Group elements that hold search results are non-persistent and should be treated differently. |
static void |
refreshAllNodes(CGroupsManagerUnrestrictedSessionData sd,
IEntityGroup entGrp)
Deprecated. Updates all nodes for the same IEntityGroup with information about the IEntityGroup. |
static void |
refreshAllNodesIfRequired(CGroupsManagerUnrestrictedSessionData sd,
Element anElem)
Deprecated. Updates all nodes representing the same IEntityGroup that is represented by the anElem, if the anElem is out of date with the IEntityGroup. |
static void |
refreshAllNodesRecursivelyIfRequired(CGroupsManagerUnrestrictedSessionData sd,
Element parentElem)
Deprecated. Updates all nodes representing the same IEntityGroup that is represented by the anElem, if the anElem is out of date with the IEntityGroup. |
static void |
refreshElement(Element updElem,
IEntityGroup entGrp)
Deprecated. Updates an Element with information about the IEntityGroup. |
static boolean |
refreshRequired(Element chkElem,
IEntityGroup entGrp)
Deprecated. Updates an Element with information about the IEntityGroup. |
static void |
removeElementsForTagName(Element anElem,
String tagname)
Deprecated. Removes all elements with the tagname from an element |
static void |
removePropertyElements(Document model,
IGroupMember gm,
boolean clearCache)
Deprecated. Removes all property elements for an IGroupMember and optionally clears the Entity Property cache. |
static IEntity |
retrieveEntity(String aKey,
String aType)
Deprecated. Returns an IEntity for the key. |
static IEntityGroup |
retrieveGroup(String aKey)
Deprecated. Returns an IEntityGroup for the key. |
static IGroupMember |
retrieveGroupMemberForElement(Element gmElem)
Deprecated. Returns the IGroupMember represented by an Element |
static IGroupMember |
retrieveGroupMemberForElementId(Document aDoc,
String id)
Deprecated. Returns the IGroupMember represented by an Element |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupsManagerXML()
| Method Detail |
|---|
public static Document getGroupsManagerXml(CGroupsManagerSessionData sessionData)
sessionData - CGroupsManagerSessionData
public static Element createElement(String name,
Document xmlDoc,
boolean setGrpDefault)
name - xmlDoc - setGrpDefault -
public static Element createRdfElement(IEntityGroup entGrp,
Document xmlDoc)
entGrp - IEntityGroupxmlDoc - Document
public static void createPermissions(CGroupsManagerSessionData sessionData,
IEntityGroup childEntGrp)
throws Exception
sessionData - CGroupsManagerSessionDatachildEntGrp - IEntityGroup
Exception
public static void expandGroupElementXML(Element expandedElem,
CGroupsManagerUnrestrictedSessionData sd)
expandedElem - Elementsd - CGroupsManagerUnrestrictedSessionData
public static Element getAuthorizationXml(ChannelStaticData sd,
Element apRoot,
Document xmlDoc)
sd - apRoot - xmlDoc -
public static Element getElementById(Document aDoc,
String id)
aDoc - id -
public static Element getElementByTagNameAndId(Document aDoc,
String tagname,
String id)
aDoc - tagname - id -
public static String getElementValueForTagName(Element anElem,
String tagname)
anElem - Elementtagname - String
public static String getEntityName(Class typClass,
String aKey)
typClass - aKey -
public static String getEntityName(String className,
String aKey)
className - aKey -
public static HashMap getEntityTypes()
public static Element getEntityTypesXml(Document xmlDoc)
xmlDoc -
public static Element getExpandedElementForTagNameAndKey(Document aDoc,
String tagname,
String key)
aDoc - tagname - key -
public static Element getGroupMemberXml(IGroupMember gm,
boolean isContextExpanded,
Element anElem,
CGroupsManagerUnrestrictedSessionData sd)
gm - isContextExpanded - anElem - sd - CGroupsManagerUnrestrictedSessionData
public static Document getNewDocument()
public static String getNextUid()
public static Iterator getNodesById(Document aDoc,
String id)
aDoc - id -
public static Iterator getNodesByTagNameAndKey(Document aDoc,
String tagname,
String key)
aDoc - tagname - key -
public static Iterator getNodesByTagNameAndKey(Element anElem,
String tagname,
String key)
anElem - tagname - key -
public static Element getPermissionXml(Document xmlDoc,
String prmPrincipal,
String prmActivity,
String prmType,
String prmTarget)
xmlDoc - prmPrincipal - prmActivity - prmType - prmTarget -
public static IGroupsManagerWrapper getWrapper(String type)
type -
public static boolean isPersistentGroup(Element anElem)
anElem - Element (not null)
public static void refreshAllNodes(CGroupsManagerUnrestrictedSessionData sd,
IEntityGroup entGrp)
sd - CGroupsManagerUnrestrictedSessionDataentGrp - IEntityGroup
public static void refreshAllNodesIfRequired(CGroupsManagerUnrestrictedSessionData sd,
Element anElem)
sd - CGroupsManagerUnrestrictedSessionDataanElem - Element
public static void refreshAllNodesRecursivelyIfRequired(CGroupsManagerUnrestrictedSessionData sd,
Element parentElem)
sd - CGroupsManagerUnrestrictedSessionDataparentElem - Element
public static void refreshElement(Element updElem,
IEntityGroup entGrp)
updElem - ElemententGrp - IEntityGroup
public static boolean refreshRequired(Element chkElem,
IEntityGroup entGrp)
chkElem - ElemententGrp - IEntityGroup
public static IEntity retrieveEntity(String aKey,
String aType)
aKey - aType -
public static IEntityGroup retrieveGroup(String aKey)
aKey -
public static IGroupMember retrieveGroupMemberForElementId(Document aDoc,
String id)
aDoc - id -
public static IGroupMember retrieveGroupMemberForElement(Element gmElem)
gmElem -
public static String getTagName(IGroupMember gm)
gm - IGroupMember
public static void removeElementsForTagName(Element anElem,
String tagname)
anElem - Elementtagname - String
public static void removePropertyElements(Document model,
IGroupMember gm,
boolean clearCache)
model - Elementgm - IGroupMemberclearCache - booleanpublic static void clearPropertiesCache(IGroupMember gm)
gm - IGroupMember
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||