Class EffectiveProjectResource
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.project.EffectiveProjectResource
 
- 
- All Implemented Interfaces:
- ProjectResource,- java.io.Serializable
 
 public class EffectiveProjectResource extends java.lang.Object implements ProjectResource Delegate project resource implementation that overrides the projectName, so that all project resources, inherited or otherwise, share the same resource id.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from interface com.inductiveautomation.ignition.common.project.resource.ProjectResourceDEFAULT_DATA_KEY, LEGACY_FOLDER_RESOURCE_TYPE, PLATFORM_MODULE_ID
 
- 
 - 
Constructor SummaryConstructors Constructor Description EffectiveProjectResource(java.lang.String projectName, ProjectResource delegateResource)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetApplicationScope()Get the application scope of this resource.java.util.Map<java.lang.String,com.inductiveautomation.ignition.common.gson.JsonElement>getAttributes()Get an immutable view of the attributes map.byte[]getContentDigest()Get the SHA-256 digest of the content of this resource.byte[]getData()byte[]getData(java.lang.String key)com.google.common.collect.ImmutableSet<java.lang.String>getDataKeys()Get an immutable view of the data key set.java.lang.StringgetDocumentation()java.lang.StringgetProjectName()Get the name of theProjectthis resource belongs to.ProjectResourceIdgetResourceId()java.lang.StringgetResourceName()ResourcePathgetResourcePath()ResourceSignaturegetResourceSignature()Get theResourceSignaturefor this resource.ResourceTypegetResourceType()intgetVersion()Get the version of this resource.booleanisFolder()booleanisLocked()booleanisOverridable()booleanisRestricted()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.project.resource.ProjectResourcecopy, copy, getAttribute, getFolderPath, isModuleFolder, isResourceTypeFolder, isSingletonResource, toBuilder
 
- 
 
- 
- 
- 
Constructor Detail- 
EffectiveProjectResourcepublic EffectiveProjectResource(java.lang.String projectName, ProjectResource delegateResource)
 
- 
 - 
Method Detail- 
getProjectNamepublic java.lang.String getProjectName() Description copied from interface:ProjectResourceGet the name of theProjectthis resource belongs to.- Specified by:
- getProjectNamein interface- ProjectResource
- Returns:
- the name of the Projectthis resource belongs to.
 
 - 
getResourceIdpublic ProjectResourceId getResourceId() - Specified by:
- getResourceIdin interface- ProjectResource
 
 - 
getContentDigestpublic byte[] getContentDigest() Description copied from interface:ProjectResourceGet the SHA-256 digest of the content of this resource. This does not include the project name or any part of the path to this resource, but rather, it's a representation of the contents of the folder on disk.Any changes to any of the resource contents of that folder shall result in a change to the content digest. - Specified by:
- getContentDigestin interface- ProjectResource
- Returns:
- the SHA-256 digest of the content of this resource.
- See Also:
- ProjectResource.getResourceSignature(),- ResourceSignature
 
 - 
getResourceSignaturepublic ResourceSignature getResourceSignature() Description copied from interface:ProjectResourceGet theResourceSignaturefor this resource.- Specified by:
- getResourceSignaturein interface- ProjectResource
- Returns:
- the ResourceSignaturefor this resource.
 
 - 
getResourceNamepublic java.lang.String getResourceName() - Specified by:
- getResourceNamein interface- ProjectResource
 
 - 
getResourceTypepublic ResourceType getResourceType() - Specified by:
- getResourceTypein interface- ProjectResource
 
 - 
getResourcePathpublic ResourcePath getResourcePath() - Specified by:
- getResourcePathin interface- ProjectResource
 
 - 
getDocumentation@Nullable public java.lang.String getDocumentation() - Specified by:
- getDocumentationin interface- ProjectResource
 
 - 
getApplicationScopepublic int getApplicationScope() Description copied from interface:ProjectResourceGet the application scope of this resource.- Specified by:
- getApplicationScopein interface- ProjectResource
- Returns:
- the application scope of this resource.
- See Also:
- ApplicationScope
 
 - 
getVersionpublic int getVersion() Description copied from interface:ProjectResourceGet the version of this resource.The version number is not intended to track mutations to the resource like the legacy edit count, but rather, its interpretation and use is for the entities this resource type belongs to and so it can be used to reason about the contents of the resource, e.g. to distinguish between serialization formats. - Specified by:
- getVersionin interface- ProjectResource
- Returns:
- the version of this resource.
 
 - 
isFolderpublic boolean isFolder() - Specified by:
- isFolderin interface- ProjectResource
- Returns:
- trueif this resource is a folder.
 
 - 
isLockedpublic boolean isLocked() - Specified by:
- isLockedin interface- ProjectResource
- Returns:
- trueif this resource is OEM locked.
 
 - 
isRestrictedpublic boolean isRestricted() - Specified by:
- isRestrictedin interface- ProjectResource
- Returns:
- trueif this resource is restricted to users of a certain role. Formerly known as "protected".
 
 - 
isOverridablepublic boolean isOverridable() - Specified by:
- isOverridablein interface- ProjectResource
- Returns:
- trueif this resource can be overridden by child projects.
 
 - 
getData@Nullable public byte[] getData() - Specified by:
- getDatain interface- ProjectResource
 
 - 
getData@Nullable public byte[] getData(java.lang.String key) - Specified by:
- getDatain interface- ProjectResource
 
 - 
getDataKeys@Nonnull public com.google.common.collect.ImmutableSet<java.lang.String> getDataKeys() Description copied from interface:ProjectResourceGet an immutable view of the data key set.- Specified by:
- getDataKeysin interface- ProjectResource
- Returns:
- an immutable view of the data key set.
 
 - 
getAttributes@Nonnull public java.util.Map<java.lang.String,com.inductiveautomation.ignition.common.gson.JsonElement> getAttributes() Description copied from interface:ProjectResourceGet an immutable view of the attributes map.- Specified by:
- getAttributesin interface- ProjectResource
- Returns:
- an immutable view of the attributes map.
 
 
- 
 
-