|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.AbstractNamedEntity
org.torweg.pulse.util.entity.AbstractNamableEntity
org.torweg.pulse.util.entity.AbstractImageGroup
@MappedSuperclass public abstract class AbstractImageGroup
Holds different versions of an image (e.g. the differently sized versions of
an image assigned to a Content).
AbstractImageGroupConfiguration, Serialized Form| Constructor Summary | |
|---|---|
protected |
AbstractImageGroup()
used for HibernateTM. |
|
AbstractImageGroup(java.lang.String nam, Bundle b)
The Constructor that sets the name of the
AbstractImageGroup. |
| Method Summary | |
|---|---|
org.jdom.Element |
deserializeToJDOM()
Deserializes the state of the AbstractImageGroup as a JDOM
Element. |
abstract java.util.List<AbstractImageGroupConfiguration.Version> |
getAllAssignableVersions()
Returns a List containing the version names of all image versions
assignable to the AbstractImageGroup. |
java.util.List<java.lang.String> |
getAssignedVersionNames()
Returns a List containing the version names of the image versions
assigned to the AbstractImageGroup. |
Bundle |
getBundle()
returns the bundle of the AbstractImageGroup. |
java.util.List<VirtualFile> |
getImages()
returns a flat set of all assigned images. |
VirtualFile |
getImageVersion(java.lang.String versionName)
Returns the image version with the given version name. |
AbstractImageGroupConfiguration |
getImageVersionConfiguration()
Returns the underlying AbstractImageGroupConfiguration. |
void |
init()
initialises the lazy fields of the AbstractImageGroup. |
boolean |
isAvailableVersionName(java.lang.String versionName)
checks whether the given name is assignable for the AbstractImageGroup. |
void |
setBundle(Bundle b)
sets the bundle of the AbstractImageGroup. |
void |
setImageVersion(java.lang.String versionName, VirtualFile image)
Sets the image version with the given version name. |
protected void |
setImageVersionConfiguration(AbstractImageGroupConfiguration conf)
Sets the AbstractImageGroupConfiguration. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractNamableEntity |
|---|
setName |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity |
|---|
getName |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.torweg.pulse.util.INameable |
|---|
setName |
| Methods inherited from interface org.torweg.pulse.util.INamed |
|---|
getName |
| Constructor Detail |
|---|
protected AbstractImageGroup()
public AbstractImageGroup(java.lang.String nam, Bundle b)
Constructor that sets the name of the
AbstractImageGroup.
nam - the name to be set.b - the bundle| Method Detail |
|---|
public final Bundle getBundle()
AbstractImageGroup.
public final void setBundle(Bundle b)
AbstractImageGroup.
b - the bundlepublic abstract java.util.List<AbstractImageGroupConfiguration.Version> getAllAssignableVersions()
List containing the version names of all image versions
assignable to the AbstractImageGroup.
AbstractImageGrouppublic final java.util.List<java.lang.String> getAssignedVersionNames()
List containing the version names of the image versions
assigned to the AbstractImageGroup.
AbstractImageGrouppublic final VirtualFile getImageVersion(java.lang.String versionName)
versionName - the version name of the image version to be returned
nullpublic final java.util.List<VirtualFile> getImages()
public final void setImageVersion(java.lang.String versionName, VirtualFile image)
versionName - the version name of the image version to be setimage - the image version to be setpublic final boolean isAvailableVersionName(java.lang.String versionName)
AbstractImageGroup.
versionName - the version name to check
true, if and only if setImageVersion(String,
VirtualFile) can be safely called for the given name. Otherwise
false.public final void init()
AbstractImageGroup.
protected final void setImageVersionConfiguration(AbstractImageGroupConfiguration conf)
AbstractImageGroupConfiguration.
conf - the AbstractImageGroupConfigurationpublic final AbstractImageGroupConfiguration getImageVersionConfiguration()
AbstractImageGroupConfiguration.
public org.jdom.Element deserializeToJDOM()
AbstractImageGroup as a JDOM
Element.
AbstractImageGroup as a JDOM
Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||