Package org.exoplatform.clouddrive.box
Class JCRLocalBoxDrive.BoxState
- java.lang.Object
-
- org.exoplatform.clouddrive.box.JCRLocalBoxDrive.BoxState
-
- All Implemented Interfaces:
org.exoplatform.services.cms.clouddrives.CloudDrive.FilesState
- Enclosing class:
- JCRLocalBoxDrive
public class JCRLocalBoxDrive.BoxState extends Object implements org.exoplatform.services.cms.clouddrives.CloudDrive.FilesState
The Class BoxState.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBoxState(BoxAPI.ChangesLink link)Instantiates a new box state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCreated()Gets the created.longgetMaxRetries()Gets the max retries.longgetOutdatedTimeout()Gets the outdated timeout.longgetRetryTimeout()Gets the retry timeout.longgetTtl()Gets the ttl.StringgetType()Gets the type.Collection<String>getUpdating()StringgetUrl()Gets the url.booleanisNew(String fileIdOrPath)booleanisOutdated()Checks if is outdated.booleanisUpdating(String fileIdOrPath)
-
-
-
Constructor Detail
-
BoxState
protected BoxState(BoxAPI.ChangesLink link)
Instantiates a new box state.- Parameters:
link- the link
-
-
Method Detail
-
getUpdating
public Collection<String> getUpdating()
- Specified by:
getUpdatingin interfaceorg.exoplatform.services.cms.clouddrives.CloudDrive.FilesState
-
isUpdating
public boolean isUpdating(String fileIdOrPath)
- Specified by:
isUpdatingin interfaceorg.exoplatform.services.cms.clouddrives.CloudDrive.FilesState
-
isNew
public boolean isNew(String fileIdOrPath)
- Specified by:
isNewin interfaceorg.exoplatform.services.cms.clouddrives.CloudDrive.FilesState
-
getType
public String getType()
Gets the type.- Returns:
- the type
-
getUrl
public String getUrl()
Gets the url.- Returns:
- the url
-
getTtl
public long getTtl()
Gets the ttl.- Returns:
- the ttl
-
getMaxRetries
public long getMaxRetries()
Gets the max retries.- Returns:
- the maxRetries
-
getRetryTimeout
public long getRetryTimeout()
Gets the retry timeout.- Returns:
- the retryTimeout
-
getOutdatedTimeout
public long getOutdatedTimeout()
Gets the outdated timeout.- Returns:
- the outdatedTimeout
-
getCreated
public long getCreated()
Gets the created.- Returns:
- the created
-
isOutdated
public boolean isOutdated()
Checks if is outdated.- Returns:
- true, if is outdated
-
-