Class ServiceInstance
- java.lang.Object
-
- lumis.portal.structure.sync.model.serviceinstance.ServiceInstance
-
- All Implemented Interfaces:
Cloneable
,ICustomEquivalence
,IFileElement
,IFileStructureElement
public class ServiceInstance extends Object implements IFileStructureElement, Cloneable, ICustomEquivalence
Service instance model.Documentation in this class focus synchronization behavior. About the use behind the fields in the portal, see
ServiceInstanceConfig
.- Since:
- 6.2.0
- Version:
- $Revision: 20509 $ $Date: 2017-09-11 16:18:14 -0300 (Mon, 11 Sep 2017) $
- See Also:
ServiceInstanceConfig
-
-
Constructor Summary
Constructors Constructor Description ServiceInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustChannelTemplateLink(Queue<ParallelExecutor.IDatabaseTask> channelTemplateLinksToAdd)
void
afterXmlRead()
void
beforeXmlWrite()
Before XML write callback.protected Object
clone()
AccessControlList
getAccessControlList()
Returns the accessControlList.String
getChannelId()
SortedSet<ServiceInstanceCustomProperty>
getCustomProperties()
Returns the customProperties.SortedSet<ServiceInstanceDependency>
getDependencies()
Returns the dependencies.String
getDescription()
Returns the description.String
getDirectoryChannelId()
Returns the identifier of the channel that corresponds to the directory this element's file resides in.Set<FileTransformation>
getFileTransformations()
String
getId()
Returns the element's identifier.String
getName()
Returns the name.PropertyBag
getPropertyBag()
String
getServiceId()
Returns the serviceId.String
getStructureFileName()
Returns the name of the structure file for this element.String
getWorkflowId()
Returns the workflow identifier.Set<ServiceInstanceWorkflowPermissionXml>
getWorkflowPermissions()
Returns the set of permissions for the XML serialization.boolean
isEquivalent(Object obj)
Returns whether this object is equivalent to the given object.boolean
isImplicitForeignKeysSet()
Indicates whether the implicit foreign keys, set by#setImplicitForeignKeys(String, String)
, have been set.boolean
isUsesPublicFileStorage()
Returns the usesPublicFileStorage.void
setChannelId(String channelId)
void
setFriendlyId(String friendlyId)
Sets the friendly identifier for this structure element.void
setImplicitForeignKeys(String accessControlListId, String parentAccessControlListId, String propertyBagId, String parentPropertyBagId)
Sets the implicit foreign keys in this service instance.void
setWorkflow(ServiceInstanceWorkflow workflow)
Sets the workflow identifier.
-
-
-
Method Detail
-
getName
public String getName()
Returns the name.- Returns:
- the name
- Since:
- 6.2.0
-
getDescription
public String getDescription()
Returns the description.- Returns:
- the description
- Since:
- 6.2.0
-
getServiceId
public String getServiceId()
Returns the serviceId.- Returns:
- the serviceId
- Since:
- 6.2.0
-
getAccessControlList
public AccessControlList getAccessControlList()
Returns the accessControlList.- Returns:
- the accessControlList
- Since:
- 6.2.0
-
getWorkflowId
public String getWorkflowId()
Returns the workflow identifier.- Returns:
- the workflow identifier.
- Since:
- 7.0.0
-
setWorkflow
public void setWorkflow(ServiceInstanceWorkflow workflow)
Sets the workflow identifier.- Parameters:
workflow
- the workflow identifier.- Since:
- 7.0.0
-
getWorkflowPermissions
public Set<ServiceInstanceWorkflowPermissionXml> getWorkflowPermissions()
Returns the set of permissions for the XML serialization.- Returns:
- the set of permissions for the XML serialization.
- Since:
- 7.0.0
-
isUsesPublicFileStorage
public boolean isUsesPublicFileStorage()
Returns the usesPublicFileStorage.- Returns:
- the usesPublicFileStorage
- Since:
- 6.2.0
-
getCustomProperties
public SortedSet<ServiceInstanceCustomProperty> getCustomProperties()
Returns the customProperties.- Returns:
- the customProperties
- Since:
- 6.2.0
-
getFileTransformations
public Set<FileTransformation> getFileTransformations()
-
getDependencies
public SortedSet<ServiceInstanceDependency> getDependencies()
Returns the dependencies.- Returns:
- the dependencies
- Since:
- 6.2.0
-
isImplicitForeignKeysSet
public boolean isImplicitForeignKeysSet()
Indicates whether the implicit foreign keys, set by#setImplicitForeignKeys(String, String)
, have been set.- Returns:
- true if the implicit foreign keys are set, false otherwise.
- Since:
- 6.2.0
-
setImplicitForeignKeys
public void setImplicitForeignKeys(String accessControlListId, String parentAccessControlListId, String propertyBagId, String parentPropertyBagId)
Sets the implicit foreign keys in this service instance. Required before it can be properly persisted to the database.- Parameters:
accessControlListId
- the identifier for this service instance's ACL. Must benull
if the service instance will be added (will be auto-generated).parentAccessControlListId
- the identifier of the parent of this service instance's ACL.propertyBagId
- the identifier of the property bag.parentPropertyBagId
- the identifier of the parent property bag.- Since:
- 6.2.0
-
getId
public String getId()
Description copied from interface:IFileStructureElement
Returns the element's identifier.- Specified by:
getId
in interfaceIFileStructureElement
- Returns:
- the element's identifier.
-
getDirectoryChannelId
public String getDirectoryChannelId()
Description copied from interface:IFileStructureElement
Returns the identifier of the channel that corresponds to the directory this element's file resides in.- Specified by:
getDirectoryChannelId
in interfaceIFileStructureElement
- Returns:
- the identifier of the channel.
-
getStructureFileName
public String getStructureFileName()
Description copied from interface:IFileStructureElement
Returns the name of the structure file for this element.- Specified by:
getStructureFileName
in interfaceIFileStructureElement
- Returns:
- the structure file name (only the file's name, does not include any path).
-
setChannelId
public void setChannelId(String channelId)
-
getChannelId
public String getChannelId()
-
setFriendlyId
public void setFriendlyId(String friendlyId)
Description copied from interface:IFileStructureElement
Sets the friendly identifier for this structure element.- Specified by:
setFriendlyId
in interfaceIFileStructureElement
- Parameters:
friendlyId
- the friendly identifier.
-
getPropertyBag
public PropertyBag getPropertyBag()
-
afterXmlRead
public void afterXmlRead()
-
beforeXmlWrite
public void beforeXmlWrite()
Before XML write callback.- Since:
- 6.2.0
-
adjustChannelTemplateLink
public void adjustChannelTemplateLink(Queue<ParallelExecutor.IDatabaseTask> channelTemplateLinksToAdd)
- Parameters:
channelTemplateLinksToAdd
-- Since:
- 6.2.0
-
isEquivalent
public boolean isEquivalent(Object obj)
Description copied from interface:ICustomEquivalence
Returns whether this object is equivalent to the given object. If the object is equivalent, it will not need to be updated during synchronization.- Specified by:
isEquivalent
in interfaceICustomEquivalence
- Parameters:
obj
- the object to compare with.- Returns:
- true if the objects are equivalent, false otherwise.
-
-