public class ContentQuota extends TieApplicationObject
ContentQuotaDefinition| Modifier and Type | Field and Description | 
|---|---|
| static String | ALLOCATEDSTORAGE_ATTRIBUTEThe amount of storage space allocated by this ContentQuota to the DirectoryUser. | 
| static String | ASSOCIATEDPUBLICOBJECT_ATTRIBUTEThe DirectoryUser that has allocated/consumed the storage space represented by this ContentQuota. | 
| static String | CLASS_NAMEThis class name for this class. | 
| static String | CONSUMEDSTORAGE_ATTRIBUTEThe amount of storage space currently consumed by the DirectoryUser. | 
| static String | ENABLED_ATTRIBUTEAn indicator of whether the ContentQuota is enabled or disabled. | 
| static String | UNIQUENAME_ATTRIBUTEA system-set attribute used to ensure each ContentQuota has a unique name. | 
ACL_ATTRIBUTE, CREATEDATE_ATTRIBUTE, CREATOR_ATTRIBUTE, DELETOR_ATTRIBUTE, DESCRIPTION_ATTRIBUTE, EXPIRATIONDATE_ATTRIBUTE, FAMILY_ATTRIBUTE, FLAG_CATEGORY_EXISTS, FLAG_CONFIGURATIONCATEGORY_EXISTS, FLAG_MARKED, FLAG_NOINFERIOR, FLAG_NOSELECT, FLAG_NTFS_ARCHIVE, FLAG_NTFS_HIDDEN, FLAG_NTFS_READONLY, FLAG_NTFS_SYSTEM, FLAG_UNMARKED, FLAGS_ATTRIBUTE, LASTMODIFIER_ATTRIBUTE, LASTMODIFYDATE_ATTRIBUTE, LOCKENTRIES_ATTRIBUTE, LOCKOBJECT_ATTRIBUTE, NAME_ATTRIBUTE, OWNER_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PRIMARYPARENTFOLDER_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE, RESOLVEDPUBLICOBJECT_ATTRIBUTE, SECURINGPUBLICOBJECT_ATTRIBUTEDOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session| Modifier | Constructor and Description | 
|---|---|
| protected  | ContentQuota(LibrarySession session,
            Long id,
            Long classid,
            S_LibraryObjectData data)Construct a ContentQuota object - standard variant. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | calculateConsumedStorage()Calculates the current consumed storage for the DirectoryUser
 and updates this ContentQuota object. | 
| protected static ContentQuota | constructContentQuota(LibrarySession sess,
                     S_LibraryObjectData data)Constructs a ContentQuota for the specified data. | 
| protected static Vector | constructContentQuotaVector(LibrarySession sess,
                           Vector vector)Constructs a vector of ContentQuota from vector
 of S_LOData. | 
| long | getAllocatedStorage()Gets the amount of allocated storage. | 
| PublicObject | getAssociatedPublicObject()Gets the PublicObject associated with this ContentQuota object. | 
| long | getConsumedStorage()Gets the amount of consumed storage. | 
| boolean | isEnabled()Determines whether quota enforcement is enabled. | 
| void | postConsumptionChangeEvent(long payload)Post a consumption change event on the ContentQuota. | 
| void | setAllocatedStorage(long value)Sets the amount of allocated storage. | 
| void | setEnabled(boolean enable)ContentQuota can be enabled or disabled. | 
| protected static ContentQuota | vectorContentQuotaElement(Vector vector,
                         int index)Extracts an element of a Vector of ContentQuota. | 
| protected static ContentQuota[] | vectorToContentQuotaArray(Vector vector)Converts a Vector of ContentQuota to an array of
 ContentQuota. | 
auditPublicObjectLocked, auditPublicObjectUnlocked, auditUpdated, constructApplicationObject, constructApplicationObjectVector, isValidEventType, postCreate, preFree, reportApplicationObjectCreated, reportApplicationObjectFreedaddAccess, addAttachment, addCategory, addFlags, addMessageList, addRelationship, canAcquireManualLock, canReleaseDavLock, canReleaseLock, canReleaseManualLock, capabilities, checkAuditViewCapability, checkCapabilities, checkCapability, checkEffectiveAccess, checkEffectiveAccess, checkLockAccess, checkParentFolderCapability, checkVersioned, clearFlags, constructPublicObject, constructPublicObjectArray, constructPublicObjectVector, containsLockEntry, copy, coreAutoFolderingEnabled, createCategories, createDedicatedPolicyPropertyBundle, delete, deriveEffectiveAccessLevel, findAttachmentRelation, findOrAddActivityRecord, findOrAddActivityRecord, findOrAddActor, findOrAddActor, findOrAddMessageList, findOrAddMessageList, free, getAcl, getActivityRecord, getActor, getAllFolderPaths, getAllFolderPaths, getAllFolderPaths, getAnyFolderPath, getAnyFolderPath, getAnyFolderPath, getAttachmentRelation, getAttachmentRelations, getAttachments, getCapabilities, getCategories, getCategories, getCategories, getCategories, getCategories, getCategory, getCreateDate, getCreator, getDefaultAccessLevel, getDefinitionForSimplePropertyUpdates, getDeletor, getDescription, getEffectiveAccessLevel, getEffectiveAccessLevel, getExpirationDate, getFamily, getFirstCategory, getFirstVersion, getFlags, getFolderReferences, getFolderReferences, getFolderReferencesSortSpecification, getLastModifier, getLastModifyDate, getLastVersion, getLeftwardRelationshipObjects, getLeftwardRelationshipObjects, getLeftwardRelationships, getLeftwardRelationships, getLeftwardRelationshipsCount, getLeftwardRelationshipsCount, getLinks, getLockEntries, getLockEntries, getLockObject, getLockRestrictions, getLockTypeAuditProperties, getMessageList, getNextVersion, getOwner, getPolicyBundle, getPolicyLists, getPreviousVersion, getPrimaryFolderPath, getPrimaryFolderPathIds, getPrimaryParentFolder, getPrimaryParentFolder, getRelations, getReservationComment, getReservationDate, getReservor, getResolvedPublicObject, getRestrictingLockEntries, getRightwardRelationshipObjects, getRightwardRelationshipObjects, getRightwardRelationships, getRightwardRelationships, getSecuringPublicObject, getSingletonVersionDescription, getVersionNumber, getVersions, getVersionSeries, getWorkingCopy, grantAccess, handleCopy, handleCreate, handleUnlockAll, hasActivityRecord, hasActor, hasAttachmentRelation, hasCategories, hasCategory, hasConfigurationCategories, hasMessageList, hasNameAttribute, hasPropertyBundleAttribute, isAttachment, isDeleted, isLatestVersion, isLocked, isLockingSupported, isOwner, isReserved, isReservedByCurrentUser, isVersionable, isVersioned, isWorkingCopy, listLeftwardRelationships, listRightwardRelationships, lock, lock, lock, lock, newVersion, postCopy, postSecurityChangedEvent, postUpdate, preCopy, preCreate, preUpdate, putPolicy, reassociateLinks, removeAllPolicies, removeAttachment, removePolicy, removePolicy, removeRelationship, reserveNext, resetFolderReferences, resolveFolderReferenceSortSpecification, revokeAccess, revokeAllAccess, setAcl, setDescription, setExpirationDate, setFlags, setFolderReferencesSortSpecification, setLockEntries, setLockEntrySecurity, setOwner, setOwnerByName, setPolicyBundle, setPolicyLists, setSecuringPublicObject, toPublicObjectArray, undelete, unlock, unlock, unlockAll, unReserve, updateFlags, updateLock, vectorPublicObjectElement, vectorToPublicObjectArray, verifyAddRelationshipCapability, verifyCapabilities, verifyCapability, verifyDeleteCapability, verifyLockCapability, verifyRemoveRelationshipCapability, verifyUnlockCapability, verifyVersionSeriesadded, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttributeByUpperCaseName, getClassId, getId, getSessionInterfacegetTraceLogger, isTraced, tracepublic static final String CLASS_NAME
public static final String ASSOCIATEDPUBLICOBJECT_ATTRIBUTE
public static final String ALLOCATEDSTORAGE_ATTRIBUTE
public static final String CONSUMEDSTORAGE_ATTRIBUTE
public static final String ENABLED_ATTRIBUTE
public static final String UNIQUENAME_ATTRIBUTE
protected ContentQuota(LibrarySession session, Long id, Long classid, S_LibraryObjectData data) throws IfsException
session - the sessionid - the idclassid - the class iddata - the object dataIfsExceptionpublic PublicObject getAssociatedPublicObject() throws IfsException
IfsException - if operation failspublic long getAllocatedStorage()
                         throws IfsException
IfsException - if operation fails.public void setAllocatedStorage(long value)
                         throws IfsException
value - IfsException - if operation fails.public long getConsumedStorage()
                        throws IfsException
getConsumedStorage in class PublicObjectIfsException - if operation fails.public void calculateConsumedStorage()
                              throws IfsException
IfsException - if operation fails.public boolean isEnabled()
                  throws IfsException
IfsException - if the operation failspublic void setEnabled(boolean enable)
                throws IfsException
enable - true if quota should be effectiveIfsException - if the operation failspublic void postConsumptionChangeEvent(long payload)
                                throws IfsException
payload - the increase in quota consumed, or
                      zero if no increaseIfsException - if the operation failsprotected static Vector constructContentQuotaVector(LibrarySession sess, Vector vector) throws IfsException
sess - sessionvector - Vector of S_LODataIfsException - if operation fails.protected static ContentQuota constructContentQuota(LibrarySession sess, S_LibraryObjectData data) throws IfsException
sess - the sessiondata - the ContentQuota dataIfsException - if an error occursprotected static ContentQuota[] vectorToContentQuotaArray(Vector vector)
vector - Vector of ContentQuota objectsprotected static ContentQuota vectorContentQuotaElement(Vector vector, int index)
vector - Vector of ContentQuota objects.index - Index into the Vector of ContentQuota objects.IndexOutOfBoundsException - if invalid index specified.Copyright © 2025. All rights reserved.