Class ImmutableProjectResource
java.lang.Object
com.inductiveautomation.ignition.common.project.resource.ImmutableProjectResource
- All Implemented Interfaces:
- ProjectResource,- Serializable
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from interface com.inductiveautomation.ignition.common.project.resource.ProjectResourceDEFAULT_DATA_KEY, LEGACY_FOLDER_RESOURCE_TYPE, PLATFORM_MODULE_ID
- 
Method SummaryModifier and TypeMethodDescriptionbooleanintGet the application scope of this resource.com.google.common.collect.ImmutableMap<String,com.inductiveautomation.ignition.common.gson.JsonElement> Get an immutable view of the attributes map.byte[]Get the SHA-256 digest of the content of this resource.byte[]com.google.common.collect.ImmutableSet<String>Get an immutable view of the data key set.Get the name of theProjectthis resource belongs to.Get theResourceSignaturefor this resource.intGet the version of this resource.inthashCode()booleanisFolder()booleanisLocked()booleanbooleantoString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.project.resource.ProjectResourcecopy, copy, getAttribute, getData, getFolderPath, getResourceName, getResourceType, isModuleFolder, isResourceTypeFolder, isSingletonResource, toBuilder
- 
Method Details- 
getProjectNameDescription 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.
 
- 
getResourcePath- Specified by:
- getResourcePathin 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:
 
- 
getDocumentation- Specified by:
- getDocumentationin interface- ProjectResource
 
- 
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- Specified by:
- getDatain interface- ProjectResource
 
- 
getDataKeysDescription 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 com.google.common.collect.ImmutableMap<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.
 
- 
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:
 
- 
getResourceSignatureDescription copied from interface:ProjectResourceGet theResourceSignaturefor this resource.- Specified by:
- getResourceSignaturein interface- ProjectResource
- Returns:
- the ResourceSignaturefor this resource.
 
- 
getResourceId- Specified by:
- getResourceIdin interface- ProjectResource
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-