public class FavoriteFolderItem extends java.lang.Object implements IFavoriteItem
Constructor and Description |
---|
FavoriteFolderItem(Connector connector,
com.centrasite.favorites.FavoriteFolder folder) |
Modifier and Type | Method and Description |
---|---|
boolean |
cannotHaveChildren()
Check whether this node may have children
|
void |
clearCache()
Clear cache used for items of this type
|
static java.util.HashMap |
cloneFavorites(com.centrasite.favorites.FavoriteManager fm,
User user) |
static com.centrasite.favorites.IFavorite |
cloneFavorites(com.centrasite.favorites.FavoriteManager fm,
User user,
com.centrasite.favorites.IFavorite oldFavorite) |
static Item |
createItem(Connector connector,
com.centrasite.favorites.IFavorite favorite) |
boolean |
equals(java.lang.Object other) |
java.util.Collection |
getAccessControlElements()
Get access control elements
|
java.util.List |
getBulkCommands()
Get list of Bulk Action commands available for the current object
|
java.util.Iterator |
getChildren() |
java.util.Iterator |
getChildren(boolean refresh) |
java.util.List |
getCommands()
Get list of commands available for the current object
|
Connector |
getConnector()
Get Connector
|
<T extends AbstractAce> |
getCurrentUserPermissionItem()
Get currently logged-in user privilege over this item, wrapped as a InstanceLevelPermissionItem.
|
com.softwareag.cis.plugin.command.Command |
getDefaultCommand() |
java.lang.String |
getDescription() |
com.softwareag.cis.plugin.command.Command |
getDetailsCommand() |
java.util.List |
getDetailViewTabs()
Get list of tabs for a detail view
|
com.centrasite.favorites.FavoriteFolder |
getFolder() |
com.centrasite.favorites.IFavorite |
getIFavorite() |
java.lang.String |
getImageURL() |
Item |
getItem()
Returns the Item
|
java.lang.String |
getKey()
Obtain a unique key for class of icons
|
java.util.Locale |
getLanguage()
Get Language
|
java.util.Locale |
getLocale()
Get Locale
|
java.lang.String |
getName() |
java.lang.String |
getNameEx()
Get "extended/alternate name".
|
java.lang.String |
getPath() |
PrivilegeDescriptor |
getPrivilegeDescriptor() |
java.util.List<Item> |
getRelatedItems() |
ReportInterface |
getReport() |
ReportInterface |
getReportForDetailView()
Get report to be used for data access in detail view of THIS Item - not for child nodes!
|
int |
hashCode() |
boolean |
hasNoChildren() |
boolean |
hasRequiredAttribute() |
boolean |
isLocked() |
boolean |
isModified()
Check whether this Item is modified vs. its corresponding
persistent version
|
boolean |
isReadOnly() |
boolean |
isSubTabModified() |
static com.centrasite.favorites.IFavorite |
mapClonedFavorite(java.util.HashMap favorites,
com.centrasite.favorites.IFavorite oldFavorite) |
void |
save(ActionContext actionContext)
Save Item
|
void |
setAccessControlElements(java.util.Collection<? extends AbstractAce> accessControlElements)
Set access control elements
|
void |
setLocked(boolean locked) |
void |
setRelatedItems(java.util.List<Item> relatedItems) |
void |
setRequiredAttribute(boolean hasRequiredAttribute) |
void |
setTabModified(boolean isSubTabModified) |
void |
showDetailView(ActionContext actionContext)
Show the details for this item
|
void |
showReport(ActionContext actionContext)
Show a report for this item.
|
public FavoriteFolderItem(Connector connector, com.centrasite.favorites.FavoriteFolder folder)
public com.centrasite.favorites.IFavorite getIFavorite()
getIFavorite
in interface IFavoriteItem
public com.centrasite.favorites.FavoriteFolder getFolder()
public static Item createItem(Connector connector, com.centrasite.favorites.IFavorite favorite) throws java.lang.Exception
java.lang.Exception
public java.util.Iterator getChildren() throws java.lang.Exception
getChildren
in interface Item
java.lang.Exception
public java.util.Iterator getChildren(boolean refresh) throws java.lang.Exception
getChildren
in interface Item
java.lang.Exception
public java.lang.String getDescription() throws java.lang.Exception
getDescription
in interface Item
java.lang.Exception
public java.lang.String getImageURL() throws java.lang.Exception
getImageURL
in interface Item
java.lang.Exception
public java.lang.String getName() throws java.lang.Exception
public java.lang.String getNameEx() throws java.lang.Exception
Item
public java.lang.String getPath() throws java.lang.Exception
public ReportInterface getReport()
public ReportInterface getReportForDetailView()
Item
getReportForDetailView
in interface Item
public boolean hasNoChildren() throws java.lang.Exception
hasNoChildren
in interface Item
java.lang.Exception
public void showDetailView(ActionContext actionContext)
Item
showDetailView
in interface Item
public void showReport(ActionContext actionContext)
Item
showReport
in interface Item
public boolean cannotHaveChildren()
Item
cannotHaveChildren
in interface Item
public void clearCache()
Item
clearCache
in interface Item
public java.util.Collection getAccessControlElements() throws java.lang.Exception
Item
getAccessControlElements
in interface Item
java.lang.Exception
public java.util.List getCommands()
Item
getCommands
in interface Item
public Connector getConnector()
Item
getConnector
in interface Item
public com.softwareag.cis.plugin.command.Command getDefaultCommand()
getDefaultCommand
in interface Item
public com.softwareag.cis.plugin.command.Command getDetailsCommand()
getDetailsCommand
in interface Item
public java.util.List getDetailViewTabs()
Item
getDetailViewTabs
in interface Item
public java.lang.String getKey() throws java.lang.Exception
Item
public java.util.Locale getLocale()
Item
public PrivilegeDescriptor getPrivilegeDescriptor()
getPrivilegeDescriptor
in interface Item
public boolean isModified()
Item
isModified
in interface Item
public boolean isReadOnly()
isReadOnly
in interface Item
public void save(ActionContext actionContext) throws java.lang.Exception
Item
public static java.util.HashMap cloneFavorites(com.centrasite.favorites.FavoriteManager fm, User user) throws JAXRException
JAXRException
public static com.centrasite.favorites.IFavorite cloneFavorites(com.centrasite.favorites.FavoriteManager fm, User user, com.centrasite.favorites.IFavorite oldFavorite) throws JAXRException
JAXRException
public static com.centrasite.favorites.IFavorite mapClonedFavorite(java.util.HashMap favorites, com.centrasite.favorites.IFavorite oldFavorite)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public <T extends AbstractAce> T getCurrentUserPermissionItem() throws java.lang.Exception
Item
getCurrentUserPermissionItem
in interface Item
java.lang.Exception
public void setAccessControlElements(java.util.Collection<? extends AbstractAce> accessControlElements) throws java.lang.Exception
Item
setAccessControlElements
in interface Item
accessControlElements
- List of Access Control elementsjava.lang.Exception
public java.util.List getBulkCommands()
Item
getBulkCommands
in interface Item
public void setTabModified(boolean isSubTabModified)
setTabModified
in interface Item
public boolean isSubTabModified()
isSubTabModified
in interface Item
public java.util.Locale getLanguage()
Item
getLanguage
in interface Item
public boolean hasRequiredAttribute()
hasRequiredAttribute
in interface Item
public void setRequiredAttribute(boolean hasRequiredAttribute)
setRequiredAttribute
in interface Item
public void setRelatedItems(java.util.List<Item> relatedItems)
setRelatedItems
in interface Item
public java.util.List<Item> getRelatedItems()
getRelatedItems
in interface Item