public interface ItemGroup<T extends Item> extends PersistenceRoot, ModelObject
Item
s.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
Item s. |
void |
onDeleted(T item)
Internal method.
|
void |
onRenamed(T item,
String oldName,
String newName)
Internal method.
|
getRootDir
getDisplayName
String getFullName()
ItemGroup
.Item.getFullName()
String getFullDisplayName()
Item.getFullDisplayName()
Collection<T> getItems()
String getUrl()
String getUrlChildPrefix()
Item
s.
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
Item
s when they are renamed by users.
This is not expected to call ItemListener#onRenamed
, inconsistent with onDeleted(T)
.IOException
void onDeleted(T item) throws IOException
Item
s when they are deleted by users.IOException
Copyright © 2016. All rights reserved.