public interface ItemGroup<T extends Item> extends PersistenceRoot, ModelObject
Items.ItemGroupMixIn| Modifier and Type | Method and Description |
|---|---|
String |
getFullDisplayName() |
String |
getFullName()
Gets the full name of this
ItemGroup. |
T |
getItem(String name)
Gets the
Item inside this group that has a given name, or null if it does not exist. |
Collection<T> |
getItems()
Gets all the items in this collection in a read-only view.
|
File |
getRootDirFor(T child)
Assigns the
root directory for children. |
String |
getUrl()
Returns the path relative to the context root,
like "foo/bar/zot/".
|
String |
getUrlChildPrefix()
Gets the URL token that prefixes the URLs for child
Items. |
void |
onDeleted(T item)
Internal method.
|
void |
onRenamed(T item,
String oldName,
String newName)
Internal method.
|
getRootDirgetDisplayNameString getFullName()
ItemGroup.Item.getFullName()String getFullDisplayName()
Item.getFullDisplayName()Collection<T> getItems()
String getUrl()
String getUrlChildPrefix()
Items.
Like "job", "item", etc.@CheckForNull T getItem(String name) throws org.acegisecurity.AccessDeniedException
Item inside this group that has a given name, or null if it does not exist.Item.getName() is name and whose Item.getParent() is this, or null if there is no such item, or there is but the current user lacks both Item.DISCOVER and Item.READ on itorg.acegisecurity.AccessDeniedException - if the current user has Item.DISCOVER but not Item.READ on this itemFile getRootDirFor(T child)
root directory for children.void onRenamed(T item, String oldName, String newName) throws IOException
Items when they are renamed by users.
This is not expected to call ItemListener#onRenamed, inconsistent with onDeleted(T).IOExceptionvoid onDeleted(T item) throws IOException
Items when they are deleted by users.IOExceptionCopyright © 2019. All rights reserved.