public interface MediaFolder extends Referenceable, StoreElementFolder
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
HistoryProvider.RevisionProvider
Modifier and Type | Field and Description |
---|---|
static IDProvider.UidType |
UID_TYPE
Uid type as returned by
IDProvider.getUidType() . |
CHANGED, NEVER_RELEASED, RELEASED
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Modifier and Type | Method and Description |
---|---|
Media |
createMedia(String uidSuggestion,
String filename,
int type,
boolean languageDependent)
Create a new media in the current MediaStore-folder
|
Media |
createMedia(String uidSuggestion,
String filename,
int type,
boolean languageDependent,
boolean unifyIdentifierOnServer)
Create a new media in this
mediafolder |
Media |
createMedia(String uidSuggestion,
String filename,
int type,
boolean languageDependent,
Map<Language,String> lang2DisplayName,
boolean unifyIdentifierOnServer)
Create a new media in this
mediafolder |
MediaFolder |
createMediaFolder(String uid)
Create a new MediaStore-folder in the MediaStore and unifies the uid if necessary.
|
MediaFolder |
createMediaFolder(String uid,
boolean unifyIdentifierOnServer)
Create a new MediaFolder as child of this media folder.
|
MediaFolder |
createMediaFolder(String uid,
Map<Language,String> lang2DisplayName,
boolean unifyIdentifierOnServer)
Create a new MediaFolder as child of this media folder.
|
boolean |
getCopyAllMedia()
Deprecated.
since 4.2.29 - use a
generate task which specifies this folder as startnode |
String |
getName()
Deprecated.
since 4.1.10 - use
IDProvider.getUid() |
String |
getStoredUrl(Language language)
Get the stored URL for this node and the provided language.
|
void |
setCopyAllMedia(boolean copyAllMedia)
Deprecated.
since 4.2.29 - use a
generate task which specifies this folder as startnode |
getReferenceName
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isReleased, isReleaseSupported, moveChild, moveChild, release, release, revert, setMeta, setMetaFormData, setUid
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getProject, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, isFolder, isImportSupported, isLocked, isLockedOnServer, isLockSupported, isPermissionSupported, isWorkflowAllowed, isWorkflowSupported, refresh, removeAllWorkflowPermissions, removeChild, removePermission, removePermission, removePermission, removeWorkflowPermission, replaceChild, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXml, update
getColor, getTask, hasTask, removeTask, setColor, setTask
compareTo
asRevisionProvider, getHistory, getHistory
static final IDProvider.UidType UID_TYPE
IDProvider.getUidType()
.MediaFolder createMediaFolder(String uid) throws LockException, ElementDeletedException
createMediaFolder uid, true
uid
- unique identifier of the new media folderLockException
- if this folder is locked in another sessionElementDeletedException
MediaFolder createMediaFolder(String uid, boolean unifyIdentifierOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedException
uid
- the unique identifier, used as suggestion if
uniqueIdentifier == true
unifyIdentifierOnServer
- use true
to unify unique
identifier by the server if neccessaryLockException
- if this folder is locked in another sessionDuplicateReferenceNameException
- if
uniqueIdentifier == false
and a media folder with
the same unique identifier
already exists.ElementDeletedException
- if this folder is already deleted on the serverMediaFolder createMediaFolder(String uid, Map<Language,String> lang2DisplayName, boolean unifyIdentifierOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedException
unifyNameOnServer == true
the given uid
will be unified on server if necessary, otherwise a DuplicateReferenceNameException
will be thrown,
if a mediafolder with the given uid already exists on the server.uid
- the unique identifier, used as suggestion if
uniqueIdentifier == true
lang2DisplayName
- mapping of language to language specific displayname; used to create LanguageInfo
nodesunifyIdentifierOnServer
- use true
to unify unique
identifier by the server if neccessaryLockException
- if this folder is locked in another sessionDuplicateReferenceNameException
- if
uniqueIdentifier == false
and a media folder with
the same unique identifier
already exists.ElementDeletedException
- if this folder is already deleted on the serverMedia createMedia(String uidSuggestion, String filename, int type, boolean languageDependent) throws DuplicateReferenceNameException, LockException, ElementDeletedException
uidSuggestion
- the unique identifier, used as suggestion if uniqueIdentifier == true
filename
- filename of the new mediatype
- type e.g. Media.FILE
, Media.PICTURE
languageDependent
- flag if new media should be a languagedependent (true
media, or not (false
).DuplicateReferenceNameException
- if a medium with this
IDProvider.getUid()
already exists on the serverLockException
- if this folder is locked in another sessionElementDeletedException
- if this media folder is already deleted on the serverMedia createMedia(String uidSuggestion, String filename, int type, boolean languageDependent, boolean unifyIdentifierOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedException
mediafolder
uidSuggestion
- the unique identifier, used as suggestion if uniqueIdentifier == true
filename
- filename of the new mediatype
- type e.g. Media.FILE
, Media.PICTURE
languageDependent
- flag if new media should be a languagedependent (true
media, or not (false
).unifyIdentifierOnServer
- use true
to unify unique identifier by the server if neccessaryDuplicateReferenceNameException
- if a medium with the given uidSuggestion already exists on the server and unifyIdentifierOnServer == false
LockException
- if this folder is locked in another sessionElementDeletedException
- if this media folder is already deleted on the serverMedia createMedia(String uidSuggestion, String filename, int type, boolean languageDependent, Map<Language,String> lang2DisplayName, boolean unifyIdentifierOnServer) throws LockException, DuplicateReferenceNameException, ElementDeletedException
mediafolder
uidSuggestion
- the unique identifier, used as suggestion if uniqueIdentifier == true
filename
- filename of the new mediatype
- type e.g. Media.FILE
, Media.PICTURE
languageDependent
- flag if new media should be a languagedependent (true
media, or not (false
).lang2DisplayName
- mapping of language to specific displayname; used to create LanguageInfo
nodesunifyIdentifierOnServer
- use true
to unify unique identifier by the server if neccessaryDuplicateReferenceNameException
- if a medium with the given uidSuggestion already exists on the server and unifyIdentifierOnServer == false
LockException
- if this folder is locked in another sessionElementDeletedException
- if this media folder is already deleted on the server@NotNull @Deprecated String getName()
IDProvider.getUid()
getName
in interface StoreElement
@Deprecated void setCopyAllMedia(boolean copyAllMedia)
generate task
which specifies this folder as startnode@Deprecated boolean getCopyAllMedia()
generate task
which specifies this folder as startnode@Nullable String getStoredUrl(Language language)
language
- Language to get the URL for.null
if no URL has been stored (yet).NullPointerException
- if parameter language
is null
.URLProperties.getStoredUrl(MediaFolder, Language)
Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500