Class ResourceReference

    • Field Detail

      • UNKNOWN_ID

        public static final String UNKNOWN_ID
        Identifier referring that the resource behind is unknown and doesn't require to be known.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResourceReference

        public ResourceReference​(ContributionIdentifier identifier)
        Constructs a new reference to the specified contribution.
        Parameters:
        identifier - the unique identifier of a contribution.
      • ResourceReference

        public ResourceReference​(String id)
        Constructs a new reference to a resource with the specified identifier. The resource doesn't belong to a component instance or that component instance isn't required to refer uniquely the resource.
        Parameters:
        id - the unique identifier of a resource from which it can be explicitly and uniquely referred in the whole Silverpeas.
      • ResourceReference

        public ResourceReference​(String id,
                                 String componentInstanceId)
        Constructs a new reference to a resource with the specified identifier and that is managed by the specified component instance.
        Parameters:
        id - the identifier of the resource, unique in the given component instance.
        componentInstanceId - the unique identifier of the component instance.
      • ResourceReference

        public ResourceReference​(WAPrimaryKey pk)
        Constructs a new reference to a resource from the old and deprecated WAPrimaryKey object.
        Parameters:
        pk - a WAPrimaryKey object used to identify uniquely a resource in Silverpeas.